Skip to content

Commit

Permalink
[giow] (0) The 'bidi-override:embed' rule for [dir] shouldn't take ef…
Browse files Browse the repository at this point in the history
…fect for block-level elements (since it overrides their 'isolate' rule).

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=14850
Affected topics: Rendering

git-svn-id: http://svn.whatwg.org/webapps@6942 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jan 31, 2012
1 parent 5e090f7 commit f2f71b1
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 42 deletions.
47 changes: 33 additions & 14 deletions complete.html
Expand Up @@ -89725,7 +89725,7 @@ <h4 id=flow-content-1><span class=secno>14.3.3 </span>Flow content</h4>

address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp {
display: block; unicode-bidi: isolate;
display: block;<!-- see also unicode-bidi: isolate rules-->
}

blockquote, figure, listing, p, plaintext, pre, xmp {
Expand Down Expand Up @@ -89967,7 +89967,26 @@ <h4 id=phrasing-content-1><span class=secno>14.3.4 </span>Phrasing content</h4>

:dir(ltr) { direction: ltr; }
:dir(rtl) { direction: rtl; }
[dir] { unicode-bidi: embed; }

address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp, article,
aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section, table, caption,
colgroup, col, thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu,
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) {
unicode-bidi: embed;
}

bdi, bdi[dir], output, output[dir], [dir=auto i] { unicode-bidi: isolate; }
bdo, bdo[dir] { unicode-bidi: bidi-override; }
bdo[dir=auto i] { unicode-bidi: bidi-override isolate; }
Expand Down Expand Up @@ -90137,7 +90156,7 @@ <h4 id=sections-and-headings><span class=secno>14.3.7 </span>Sections and headin
<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

article, aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section {
display: block; unicode-bidi: isolate;
display: block;<!-- see also unicode-bidi: isolate rules-->
}

h1 { margin-top: 0.67em; margin-bottom: 0.67em; font-size: 2.00em; font-weight: bold; }
Expand Down Expand Up @@ -90169,8 +90188,8 @@ <h4 id=lists><span class=secno>14.3.8 </span>Lists</h4>

<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

dir, dd, dl, dt, menu, ol, ul { display: block; unicode-bidi: isolate; }
li { display: list-item; unicode-bidi: isolate; }
dir, dd, dl, dt, menu, ol, ul { display: block; }<!-- see also unicode-bidi:isolate rules -->
li { display: list-item; }<!-- see also unicode-bidi:isolate rules -->

dir, dl, menu, ol, ul { margin-top: 1em; margin-bottom: 1em; }

Expand Down Expand Up @@ -90238,15 +90257,15 @@ <h4 id=tables><span class=secno>14.3.9 </span>Tables</h4>

<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

table { display: table; unicode-bidi: isolate; }
caption { display: table-caption; unicode-bidi: isolate; }
colgroup, colgroup[hidden] { display: table-column-group; unicode-bidi: isolate; }
col, col[hidden] { display: table-column; unicode-bidi: isolate; }
thead, thead[hidden] { display: table-header-group; unicode-bidi: isolate; }
tbody, tbody[hidden] { display: table-row-group; unicode-bidi: isolate; }
tfoot, tfoot[hidden] { display: table-footer-group; unicode-bidi: isolate; }
tr, tr[hidden] { display: table-row; unicode-bidi: isolate; }
td, th, td[hidden], th[hidden] { display: table-cell; unicode-bidi: isolate; }
table { display: table; }<!-- see also unicode-bidi:isolate rules -->
caption { display: table-caption; }<!-- see also unicode-bidi:isolate rules -->
colgroup, colgroup[hidden] { display: table-column-group; }<!-- see also unicode-bidi:isolate rules -->
col, col[hidden] { display: table-column; }<!-- see also unicode-bidi:isolate rules -->
thead, thead[hidden] { display: table-header-group; }<!-- see also unicode-bidi:isolate rules -->
tbody, tbody[hidden] { display: table-row-group; }<!-- see also unicode-bidi:isolate rules -->
tfoot, tfoot[hidden] { display: table-footer-group; }<!-- see also unicode-bidi:isolate rules -->
tr, tr[hidden] { display: table-row; }<!-- see also unicode-bidi:isolate rules -->
td, th, td[hidden], th[hidden] { display: table-cell; }<!-- see also unicode-bidi:isolate rules -->

colgroup[hidden], col[hidden], thead[hidden], tbody[hidden],
tfoot[hidden], tr[hidden], td[hidden], th[hidden] {
Expand Down
47 changes: 33 additions & 14 deletions index
Expand Up @@ -89725,7 +89725,7 @@ html, body { display: block; }</pre>

address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp {
display: block; unicode-bidi: isolate;
display: block;<!-- see also unicode-bidi: isolate rules-->
}

blockquote, figure, listing, p, plaintext, pre, xmp {
Expand Down Expand Up @@ -89967,7 +89967,26 @@ br[clear=all i], br[clear=both i] { clear: both; }</pre>

:dir(ltr) { direction: ltr; }
:dir(rtl) { direction: rtl; }
[dir] { unicode-bidi: embed; }

address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp, article,
aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section, table, caption,
colgroup, col, thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu,
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) {
unicode-bidi: embed;
}

bdi, bdi[dir], output, output[dir], [dir=auto i] { unicode-bidi: isolate; }
bdo, bdo[dir] { unicode-bidi: bidi-override; }
bdo[dir=auto i] { unicode-bidi: bidi-override isolate; }
Expand Down Expand Up @@ -90137,7 +90156,7 @@ textarea[dir=auto i], pre[dir=auto i] { unicode-bidi: plaintext; }</pre>
<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

article, aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section {
display: block; unicode-bidi: isolate;
display: block;<!-- see also unicode-bidi: isolate rules-->
}

h1 { margin-top: 0.67em; margin-bottom: 0.67em; font-size: 2.00em; font-weight: bold; }
Expand Down Expand Up @@ -90169,8 +90188,8 @@ h6 { margin-top: 2.33em; margin-bottom: 2.33em; font-size: 0.67em; font-weight:

<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

dir, dd, dl, dt, menu, ol, ul { display: block; unicode-bidi: isolate; }
li { display: list-item; unicode-bidi: isolate; }
dir, dd, dl, dt, menu, ol, ul { display: block; }<!-- see also unicode-bidi:isolate rules -->
li { display: list-item; }<!-- see also unicode-bidi:isolate rules -->

dir, dl, menu, ol, ul { margin-top: 1em; margin-bottom: 1em; }

Expand Down Expand Up @@ -90238,15 +90257,15 @@ ul[type=square i], li[type=square i] { list-style-type: square; }</pre>

<pre class=css>@namespace url(http://www.w3.org/1999/xhtml);

table { display: table; unicode-bidi: isolate; }
caption { display: table-caption; unicode-bidi: isolate; }
colgroup, colgroup[hidden] { display: table-column-group; unicode-bidi: isolate; }
col, col[hidden] { display: table-column; unicode-bidi: isolate; }
thead, thead[hidden] { display: table-header-group; unicode-bidi: isolate; }
tbody, tbody[hidden] { display: table-row-group; unicode-bidi: isolate; }
tfoot, tfoot[hidden] { display: table-footer-group; unicode-bidi: isolate; }
tr, tr[hidden] { display: table-row; unicode-bidi: isolate; }
td, th, td[hidden], th[hidden] { display: table-cell; unicode-bidi: isolate; }
table { display: table; }<!-- see also unicode-bidi:isolate rules -->
caption { display: table-caption; }<!-- see also unicode-bidi:isolate rules -->
colgroup, colgroup[hidden] { display: table-column-group; }<!-- see also unicode-bidi:isolate rules -->
col, col[hidden] { display: table-column; }<!-- see also unicode-bidi:isolate rules -->
thead, thead[hidden] { display: table-header-group; }<!-- see also unicode-bidi:isolate rules -->
tbody, tbody[hidden] { display: table-row-group; }<!-- see also unicode-bidi:isolate rules -->
tfoot, tfoot[hidden] { display: table-footer-group; }<!-- see also unicode-bidi:isolate rules -->
tr, tr[hidden] { display: table-row; }<!-- see also unicode-bidi:isolate rules -->
td, th, td[hidden], th[hidden] { display: table-cell; }<!-- see also unicode-bidi:isolate rules -->

colgroup[hidden], col[hidden], thead[hidden], tbody[hidden],
tfoot[hidden], tr[hidden], td[hidden], th[hidden] {
Expand Down
47 changes: 33 additions & 14 deletions source
Expand Up @@ -103843,7 +103843,7 @@ html, body { display: block; }</pre>

address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp {
display: block; unicode-bidi: isolate;
display: block;<!-- see also unicode-bidi: isolate rules-->
}

blockquote, figure, listing, p, plaintext, pre, xmp {
Expand Down Expand Up @@ -104128,7 +104128,26 @@ br[clear=all i], br[clear=both i] { clear: both; }</pre>

:dir(ltr) { direction: ltr; }
:dir(rtl) { direction: rtl; }
[dir] { unicode-bidi: embed; }

address, blockquote, center, div, figure, figcaption, footer, form,
header, hr, legend, listing, p, plaintext, pre, summary, xmp, article,
aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section, table, caption,
colgroup, col, thead, tbody, tfoot, tr, td, th, dir, dd, dl, dt, menu,
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) {
unicode-bidi: embed;
}

bdi, bdi[dir], output, output[dir], [dir=auto i] { unicode-bidi: isolate; }
bdo, bdo[dir] { unicode-bidi: bidi-override; }
bdo[dir=auto i] { unicode-bidi: bidi-override isolate; }
Expand Down Expand Up @@ -104157,7 +104176,7 @@ textarea[dir=auto i], pre[dir=auto i] { unicode-bidi: plaintext; }</pre>
<pre class="css">@namespace url(http://www.w3.org/1999/xhtml);

article, aside, h1, h2, h3, h4, h5, h6, hgroup, nav, section {
display: block; unicode-bidi: isolate;
display: block;<!-- see also unicode-bidi: isolate rules-->
}

h1 { margin-top: 0.67em; margin-bottom: 0.67em; font-size: 2.00em; font-weight: bold; }
Expand Down Expand Up @@ -104189,8 +104208,8 @@ h6 { margin-top: 2.33em; margin-bottom: 2.33em; font-size: 0.67em; font-weight:

<pre class="css">@namespace url(http://www.w3.org/1999/xhtml);

dir, dd, dl, dt, menu, ol, ul { display: block; unicode-bidi: isolate; }
li { display: list-item; unicode-bidi: isolate; }
dir, dd, dl, dt, menu, ol, ul { display: block; }<!-- see also unicode-bidi:isolate rules -->
li { display: list-item; }<!-- see also unicode-bidi:isolate rules -->

dir, dl, menu, ol, ul { margin-top: 1em; margin-bottom: 1em; }

Expand Down Expand Up @@ -104258,15 +104277,15 @@ ul[type=square i], li[type=square i] { list-style-type: square; }</pre>

<pre class="css">@namespace url(http://www.w3.org/1999/xhtml);

table { display: table; unicode-bidi: isolate; }
caption { display: table-caption; unicode-bidi: isolate; }
colgroup, colgroup[hidden] { display: table-column-group; unicode-bidi: isolate; }
col, col[hidden] { display: table-column; unicode-bidi: isolate; }
thead, thead[hidden] { display: table-header-group; unicode-bidi: isolate; }
tbody, tbody[hidden] { display: table-row-group; unicode-bidi: isolate; }
tfoot, tfoot[hidden] { display: table-footer-group; unicode-bidi: isolate; }
tr, tr[hidden] { display: table-row; unicode-bidi: isolate; }
td, th, td[hidden], th[hidden] { display: table-cell; unicode-bidi: isolate; }
table { display: table; }<!-- see also unicode-bidi:isolate rules -->
caption { display: table-caption; }<!-- see also unicode-bidi:isolate rules -->
colgroup, colgroup[hidden] { display: table-column-group; }<!-- see also unicode-bidi:isolate rules -->
col, col[hidden] { display: table-column; }<!-- see also unicode-bidi:isolate rules -->
thead, thead[hidden] { display: table-header-group; }<!-- see also unicode-bidi:isolate rules -->
tbody, tbody[hidden] { display: table-row-group; }<!-- see also unicode-bidi:isolate rules -->
tfoot, tfoot[hidden] { display: table-footer-group; }<!-- see also unicode-bidi:isolate rules -->
tr, tr[hidden] { display: table-row; }<!-- see also unicode-bidi:isolate rules -->
td, th, td[hidden], th[hidden] { display: table-cell; }<!-- see also unicode-bidi:isolate rules -->

colgroup[hidden], col[hidden], thead[hidden], tbody[hidden],
tfoot[hidden], tr[hidden], td[hidden], th[hidden] {
Expand Down

0 comments on commit f2f71b1

Please sign in to comment.