Skip to content

Commit 86f2a68

Browse files
committed
[selectors-4] Link to ITS (as an example) from :dir(). Fixes w3c#2238.
1 parent fa4780b commit 86f2a68

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

selectors-4/Overview.bs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1834,10 +1834,14 @@ Linguistic Pseudo-classes</h2>
18341834
The Directionality Pseudo-class: '':dir()''</h3>
18351835

18361836
The <dfn id='dir-pseudo'>:dir()</dfn> pseudo-class allows the author to write
1837-
selectors that represent an element based on its directionality as
1838-
determined by the document language.
1837+
selectors that represent an element based on its directionality
1838+
as determined by the <a>document language</a>.
18391839
For example, [[HTML5]] defines <a href="http://www.whatwg.org/html/selectors.html#selector-ltr">how to determine the directionality of an element</a>,
18401840
based on a combination of the <code>dir</code> attribute, the surrounding text, and other factors.
1841+
As another example, the <code>its:dir</code> and <code>dirRule</code> element
1842+
of the Internationalization Tag Set [[ITS20]]
1843+
are able to define the directionality of an element in [[XML]].
1844+
18411845
The '':dir()'' pseudo-class does not select based on stylistic
18421846
states&#8212;for example, the CSS 'direction' property does not affect
18431847
whether it matches.

0 commit comments

Comments
 (0)