[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:16:05 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=105478





--- Comment #3 from Silvia Pfeiffer <silviapf at chromium.org>  2013-02-01 22:18:07 PST ---
You're mistaken. <lang> is an actual element in WebVTT and not a pseudo-element. It's similar to <b>, <c>, <u> etc in that way. See http://dev.w3.org/html5/webvtt/#webvtt-cue-language-span .

Your example should not be:

 ::cue(:lang(ru)) { color: lime; }
::cue(:lang(en)) { color: purple; }

But rather:

 ::cue(lang[lang="ru"]) { color: lime; }
::cue(lang[lang="en"]) { color: purple; }

-- 
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