[Webkit-unassigned] [Bug 64861] Need support for :dir() pseudo-class

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 4 06:05:02 PST 2013


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





--- Comment #3 from Aharon (Vladimir) Lanin <aharon at google.com>  2013-02-04 06:07:06 PST ---
(In reply to comment #2)
> (In reply to comment #0)
> > Selectors Level 4 (http://dev.w3.org/csswg/selectors4/#dir-pseudo) specifies the :dir() pseudo-class (:dir(ltr) and :dir(rtl)), which allows the author to write selectors that represent an element based on its HTML5 directionality (see http://dev.w3.org/html5/spec/Overview.html#the-directionality).
> 
> What happens if you added a style rule like:
> :dir(ltr) {
>     direction: rtl;
> }
> ?

Nothing special. :dir() is not affected by the element's direction style. It works off its HTML directionality (1), which is independent of CSS.

(1) http://www.w3.org/html/wg/drafts/html/master/dom.html#the-directionality

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