[Webkit-unassigned] [Bug 105478] Implemet :lang() pseudo class support for the WebVTT ::cue pseudo element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 1 22:50:40 PST 2013


--- Comment #6 from Dima Gorbik <dgorbik at apple.com>  2013-02-01 22:52:42 PST ---
(In reply to comment #5)
> However, I now wonder what the other part of that example means:
> ::cue(c[lang="ru"]) { color: red; }
> ::cue(c[lang="en"]) { color: green; }
> As I understand it, the <c> tag in WebVTT does not have a lang attribute. The lang attribute is only defined on the <lang> element.
> I believe it might be caused by a typo in the table in http://dev.w3.org/html5/webvtt/#webvtt-cue-language-span . I've just registered https://www.w3.org/Bugs/Public/show_bug.cgi?id=20852 .

Hm, interesting. It really looks like only webvtt lang objects have the 'lang' attribute. And I should store the language for those elements internally so that it's only accessible by using this :lang pseudo-class. But why can't we have a lang attribute for all elements? Is this something we should discuss?

Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the webkit-unassigned mailing list