[html5] r7043 - [giow] (1) Only apply styles for [dir] if the attribute value is actually valid [...]
whatwg at whatwg.org
whatwg at whatwg.org
Mon Apr 2 14:15:10 PDT 2012
Author: ianh
Date: 2012-04-02 14:15:09 -0700 (Mon, 02 Apr 2012)
New Revision: 7043
Modified:
complete.html
index
source
Log:
[giow] (1) Only apply styles for [dir] if the attribute value is actually valid (ltr, rtl, auto).
Affected topics: Rendering
Modified: complete.html
===================================================================
--- complete.html 2012-03-28 21:58:48 UTC (rev 7042)
+++ complete.html 2012-04-02 21:15:09 UTC (rev 7043)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 28 March 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 2 April 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -92289,20 +92289,25 @@
unicode-bidi: isolate;<!-- basically anything that is display:block-like -->
}
-[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>
Modified: index
===================================================================
--- index 2012-03-28 21:58:48 UTC (rev 7042)
+++ index 2012-04-02 21:15:09 UTC (rev 7043)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 28 March 2012</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 2 April 2012</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -92289,20 +92289,25 @@
unicode-bidi: isolate;<!-- basically anything that is display:block-like -->
}
-[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>
Modified: source
===================================================================
--- source 2012-03-28 21:58:48 UTC (rev 7042)
+++ source 2012-04-02 21:15:09 UTC (rev 7043)
@@ -106914,20 +106914,25 @@
unicode-bidi: isolate;<!-- basically anything that is display:block-like -->
}
-[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>
More information about the Commit-Watchers
mailing list