Skip to content

Commit 304931b

Browse files
committed
Specify br and wbr rendering as magic
Closes #2291.
1 parent 7163372 commit 304931b

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

source

+18-5
Original file line numberDiff line numberDiff line change
@@ -109358,9 +109358,8 @@ del, s, strike { text-decoration: line-through; }
109358109358
q::before { content: open-quote; }
109359109359
q::after { content: close-quote; }
109360109360

109361-
<span data-x="" id="br-wbr-content">br { display-outside: newline; } /* <a href="#bidi-rendering">this also has bidi implications</a> */
109361+
<span data-x="" id="br-wbr-content">
109362109362
nobr { white-space: nowrap; }
109363-
wbr { display-outside: break-opportunity; } /* <a href="#bidi-rendering">this also has bidi implications</a> */
109364109363
nobr wbr { white-space: normal; }</span></pre>
109365109364

109366109365
<p>The following rules are also expected to apply, as
@@ -109525,6 +109524,22 @@ br[clear=all i], br[clear=both i] { clear: both; }</pre>
109525109524

109526109525
</ol>
109527109526

109527+
<hr>
109528+
109529+
<p>The <code>br</code> element is expected to render as a forced line (and bidi paragraph) break,
109530+
ignoring the effect of the <span>'white-space'</span> property.</p>
109531+
109532+
<p>The <code>wbr</code> element is expected to render as a line break opportunity.</p>
109533+
109534+
<p>Most CSS properties do not affect the rendering of these elements; however, some such as
109535+
<span>'line-height'</span> and <span>'font-size'</span> seem to do so under some circumstances.
109536+
The exact specification for which properties apply, and when, is still being determined.</p>
109537+
109538+
109539+
<h4>The <code>button</code> element</h4>
109540+
109541+
<p>The <code>button</code> element is expected to render as an <span>'inline-block'</span> box
109542+
depicting a button whose contents are the contents of the element.</p>
109528109543

109529109544
<h4 id="bidi-rendering">Bidirectional text</h4>
109530109545

@@ -109547,9 +109562,7 @@ input[dir=auto i]:matches([type=search i], [type=tel i], [type=url i],
109547109562
[type=email i]), textarea[dir=auto i], pre[dir=auto i] {
109548109563
unicode-bidi: plaintext;
109549109564
}
109550-
/* see prose for input elements whose type attribute is in the Text state */
109551-
109552-
/* the <a href="#br-wbr-content">rules setting the 'content' property</a> on <code>br</code> and <code>wbr</code> elements also has bidi implications */</pre>
109565+
/* see prose for input elements whose type attribute is in the Text state */</pre>
109553109566

109554109567
<p>When an <code>input</code> element's <code data-x="attr-dir">dir</code> attribute is in the
109555109568
<span data-x="attr-dir-auto">auto</span> state and its <code data-x="attr-input-type">type</code>

0 commit comments

Comments
 (0)