Skip to content

Commit

Permalink
[giow] (1) Only apply styles for [dir] if the attribute value is actu…
Browse files Browse the repository at this point in the history
…ally valid (ltr, rtl, auto).

Affected topics: Rendering

git-svn-id: http://svn.whatwg.org/webapps@7043 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 2, 2012
1 parent 1ff599e commit 629099d
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 32 deletions.
27 changes: 16 additions & 11 deletions complete.html
Expand Up @@ -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 &mdash; Last Updated 28 March 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -92289,20 +92289,25 @@ <h4 id=phrasing-content-1><span class=secno>14.3.4 </span>Phrasing content</h4>
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>


Expand Down
27 changes: 16 additions & 11 deletions index
Expand Up @@ -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 &mdash; Last Updated 28 March 2012</h2>
<h2 class="no-num no-toc">Living Standard &mdash; 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>
Expand Down Expand Up @@ -92289,20 +92289,25 @@ ol, ul, li {
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>


Expand Down
25 changes: 15 additions & 10 deletions source
Expand Up @@ -106914,20 +106914,25 @@ ol, ul, li {
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>


Expand Down

0 comments on commit 629099d

Please sign in to comment.