hixie: Only apply styles for [dir] if the attribute value is actually valid (ltr, rtl, auto). (whatwg r7043)

hixie: Only apply styles for [dir] if the attribute value is actually
valid (ltr, rtl, auto). (whatwg r7043)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5614&r2=1.5615&f=h
http://html5.org/tools/web-apps-tracker?from=7042&to=7043

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5614
retrieving revision 1.5615
diff -u -d -r1.5614 -r1.5615
--- Overview.html 28 Mar 2012 21:58:53 -0000 1.5614
+++ Overview.html 2 Apr 2012 21:15:15 -0000 1.5615
@@ -388,7 +388,7 @@
     This is revision $Revision$.
    </p> 
      <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
-   &copy; 2011 <a href="http://www.w3.org/"><abbr title="World Wide
+   &copy; 2012 <a href="http://www.w3.org/"><abbr title="World Wide
    Web Consortium">W3C</abbr></a><sup>&reg;</sup> (<a href="http://www.csail.mit.edu/"><abbr title="Massachusetts
    Institute of Technology">MIT</abbr></a>, <a href="http://www.ercim.eu/"><abbr title="European Research
    Consortium for Informatics and Mathematics">ERCIM</abbr></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C
@@ -74221,20 +74221,25 @@
   unicode-bidi: isolate;
 }
 
-[dir]:not(address):not(blockquote):not(center):not(div):not(figure
-):not(figcaption):not(footer):not(form):not(header):not(hr):not(legend
-):not(listing):not(p):not(plaintext):not(pre):not(summary):not(xmp
-):not(article):not(aside):not(h1):not(h2):not(h3):not(h4):not(h5
-):not(h6):not(hgroup):not(nav):not(section):not(table):not(caption
-):not(colgroup):not(col):not(thead):not(tbody):not(tfoot):not(tr
-):not(td):not(th):not(dir):not(dd):not(dl):not(dt):not(menu):not(ol
-):not(ul):not(li) {
+:matches([dir=ltr i], [dir=rtl i], [dir=auto i]):not(address):not(blockquote
+):not(center):not(div):not(figure):not(figcaption):not(footer):not(form
+):not(header):not(hr):not(legend):not(listing):not(p):not(plaintext):not(pre
+):not(summary):not(xmp):not(article):not(aside):not(h1):not(h2):not(h3):not(h4
+):not(h5):not(h6):not(hgroup):not(nav):not(section):not(table):not(caption
+):not(colgroup):not(col):not(thead):not(tbody):not(tfoot):not(tr):not(td
+):not(th):not(dir):not(dd):not(dl):not(dt):not(menu):not(ol):not(ul):not(li) {
   unicode-bidi: embed;
 }
 
-bdi, bdi[dir], output, output[dir], [dir=auto i] { unicode-bidi: isolate; }
-bdo, bdo[dir] { unicode-bidi: bidi-override; }
+bdi, bdi:matches([dir=ltr i], [dir=rtl i]),
+output, output:matches([dir=ltr i], [dir=rtl i]),
+[dir=auto i] {
+  unicode-bidi: isolate;
+}
+
+bdo, bdo:matches([dir=ltr i], [dir=rtl i]) { unicode-bidi: bidi-override; }
 bdo[dir=auto i] { unicode-bidi: bidi-override isolate; }
+
 textarea[dir=auto i], pre[dir=auto i] { unicode-bidi: plaintext; }</pre>

Received on Monday, 2 April 2012 21:15:40 UTC