Skip to content

Commit 3894cc0

Browse files
committed
[css2] Issue 197 (remove 'run-in')
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403159
1 parent 1837c20 commit 3894cc0

4 files changed

Lines changed: 170 additions & 123 deletions

File tree

css2/changes.src

Lines changed: 152 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: changes.src,v 2.141 2011-03-16 13:58:12 bbos Exp $ -->
3+
<!-- $Id: changes.src,v 2.142 2011-03-16 17:03:59 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Changes</TITLE>
66
</HEAD>
@@ -7446,6 +7446,157 @@ class="propinst-background-position">'background-position'</span>
74467446
property</del> <ins>are undefined in CSS&nbsp;2.1</ins>.
74477447
</blockquote>
74487448

7449+
<!--========================== issue 197 ==========================-->
7450+
7451+
<h3 id=u.9.2.4><a
7452+
href="/TR/2010/WD-CSS2-20101207/visuren.html#display-prop">9.2.4 The
7453+
'display' property</a></h3>
7454+
7455+
<p>Because some aspects of 'run-in' (most notably if and how 'clear'
7456+
should apply to run-in elements when they are inline) are still under
7457+
discussion, 'run-in' has been reclassified as a level&nbsp;3
7458+
feature.
7459+
7460+
<p>Change in section 9.2.4:
7461+
7462+
<blockquote>
7463+
<dl>
7464+
<dt>run-in <dd>This value creates either block or inline boxes,
7465+
depending on context. <del>Properties apply to run-in boxes based on
7466+
their final status (inline-level or block-level).</del> <ins>'Run-in'
7467+
is defined in CSS level&nbsp;3 (see <a href="/TR/css3-box">CSS basic
7468+
box model</a>). It is not required for conformance to
7469+
level&nbsp;2.</ins>
7470+
</dl>
7471+
</blockquote>
7472+
7473+
<p>Remove 'run-in' from <a
7474+
href="/TR/2010/WD-CSS2-20101207/visuren.html#block-boxes">section
7475+
9.2.1 &ldquo;Block-level elements and block boxes&rdquo;</a>:
7476+
7477+
<blockquote>
7478+
<p>[&hellip;] The following values of the 'display' property make an
7479+
element block-level: 'block', 'list-item', <del>and 'run-in' (part of
7480+
the time; see run-in boxes),</del> and 'table'.
7481+
</blockquote>
7482+
7483+
<p>Remove 'run-in' from <a
7484+
href="/TR/2010/WD-CSS2-20101207/visuren.html#inline-boxes">section
7485+
9.2.2 &ldquo;Inline-level elements and inline boxes&rdquo;</a>:
7486+
7487+
<blockquote>
7488+
<p>[&hellip;] The following values of the 'display' property make an
7489+
element inline-level: 'inline', 'inline-table', <ins>and</ins>
7490+
'inline-block' <del>and 'run-in' (part of the time; see run-in
7491+
boxes)</del>. [&hellip;]
7492+
7493+
<p>[&hellip;] A non-replaced element with a 'display' value of
7494+
'inline' generates an inline box. <del>An element with a 'display'
7495+
value of 'run-in' can also generate an inline box; see run-in
7496+
boxes.</del>
7497+
</blockquote>
7498+
7499+
<p>Replace <a
7500+
href="/TR/2010/WD-CSS2-20101207/visuren.html#run-in">section 9.2.3
7501+
&ldquo;Run-in boxes&rdquo;</a>:
7502+
7503+
<blockquote>
7504+
<p><strong>9.2.3 Run-in boxes</strong>
7505+
7506+
<p><del>A run-in element (or pseudo-element) <var>A</var> behaves as
7507+
follows: [&hellip;] Please consult the section on generated content
7508+
for information about how run-in boxes interact with generated
7509+
content.</del>
7510+
7511+
<p><ins>[This section exists so that the section numbers are the same
7512+
as in previous drafts. Run-in boxes are not part of
7513+
CSS&nbsp;2.1.]</ins>
7514+
</blockquote>
7515+
7516+
<p>Remove 'run-in' from <a
7517+
href="/TR/2010/WD-CSS2-20101207/visuren.html#positioning-scheme">section
7518+
9.3 &ldquo;Positioning schemes&rdquo;</a>:
7519+
7520+
<blockquote>
7521+
<ol>
7522+
<li>Normal flow. In CSS&nbsp;2.1, normal flow includes block
7523+
formatting of block-level boxes, inline formatting of inline-level
7524+
boxes, <ins>and</ins> relative positioning of block-level and
7525+
inline-level boxes<del>, and formatting of run-in boxes</del>.
7526+
</ol>
7527+
</blockquote>
7528+
7529+
<p>Remove 'run-in' from <a
7530+
href="/TR/2010/WD-CSS2-20101207/visuren.html#flow-control">section
7531+
9.5.2 &ldquo;Controlling flow next to floats: the 'clear'
7532+
property&rdquo;</a>:
7533+
7534+
<blockquote>
7535+
<p><del>For run-in boxes, this property applies to the final block box
7536+
to which the run-in box belongs.</del>
7537+
</blockquote>
7538+
7539+
<p>Remove 'run-in' from <a
7540+
href="/TR/2010/WD-CSS2-20101207/visuren.html#dis-pos-flo">section 9.7
7541+
&ldquo;Relationships between 'display', 'position', and
7542+
'float'&rdquo;</a>:
7543+
7544+
<blockquote>
7545+
<table border="1">
7546+
<tr><th>Specified value <th style="width:30%">Computed value
7547+
<tr><td>inline-table <td>table
7548+
<tr><td>inline, <del>run-in,</del> table-row-group, table-column,
7549+
table-column-group, table-header-group, table-footer-group, table-row,
7550+
table-cell, table-caption, inline-block <td>block
7551+
<tr><td>others <td>same as specified
7552+
</table>
7553+
</blockquote>
7554+
7555+
<p>Remove 'run-in' from <a
7556+
href="/TR/2010/WD-CSS2-20101207/visuren.html#direction">section 9.10
7557+
&ldquo;Text direction: the 'direction' and 'unicode-bidi'
7558+
properties&rdquo;</a>:
7559+
7560+
<blockquote>
7561+
<p>The final order of characters in each block container is the same
7562+
as if the bidi control codes had been added as described above, markup
7563+
had been stripped, and the resulting character sequence had been
7564+
passed to an implementation of the Unicode bidirectional algorithm for
7565+
plain text that produced the same line-breaks as the styled text. In
7566+
this process, replaced elements with 'display: inline' <del>(and
7567+
replaced elements with 'display: run-in', when they generate
7568+
inline-level boxes)</del> are treated as neutral characters, unless
7569+
their 'unicode-bidi' property has a value other than 'normal', in
7570+
which case they are treated as strong characters in the 'direction'
7571+
specified for the element. All other atomic inline-level boxes are
7572+
treated as neutral characters always.
7573+
</blockquote>
7574+
7575+
<p>Remove 'run-in' from <a
7576+
href="/TR/2010/WD-CSS2-20101207/zindex.html#stacking-defs">section E.1
7577+
&ldquo;Definitions&rdquo;</a>:
7578+
7579+
<blockquote>
7580+
<dl>
7581+
<dt>Tree Order <dd>Preorder depth-first traversal of the rendering
7582+
tree, in logical (not visual) order for bidirectional content, after
7583+
taking into account properties that move boxes around <del>such as the
7584+
'run-in' value of 'display'</del>.
7585+
</dl>
7586+
</blockquote>
7587+
7588+
<p>Remove 'run-in' from <a
7589+
href="/TR/2010/WD-CSS2-20101207/generate.html#before-after-content">section
7590+
12.1 &ldquo;The :before and :after pseudo-elements&rdquo;</a>:
7591+
7592+
<blockquote>
7593+
<p>The :before and :after pseudo-elements interact with other
7594+
boxes<del>, such as run-in boxes,</del> as if they were real elements
7595+
inserted just inside their associated element.
7596+
</blockquote>
7597+
7598+
<p>and also from the subsequent example.
7599+
74497600

74507601

74517602
</BODY>

css2/generate.src

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,33 +110,28 @@ body:after {
110110
</div>
111111

112112
<p>The :before and :after pseudo-elements interact with other
113-
boxes, such as run-in boxes, as if they were real elements inserted just
113+
boxes as if they were real elements inserted just
114114
inside their associated element.</p>
115115

116116
<div class="example">
117117
<p>For example, the following document fragment and style sheet:</p>
118118
<pre>
119-
&lt;h2> Header &lt;/h2> h2 { display: run-in; }
120119
&lt;p> Text &lt;/p> p:before { display: block; content: 'Some'; }
121120
</pre>
122121
<p>...would render in exactly the same way as the following document
123122
fragment and style sheet:</p>
124123
<pre>
125-
&lt;h2> Header &lt;/h2> h2 { display: run-in; }
126124
&lt;p>&lt;span>Some&lt;/span> Text &lt;/p> span { display: block }
127125
</pre>
128126
<p>Similarly, the following document fragment and style sheet:</p>
129127
<pre>
130-
&lt;h2> Header &lt;/h2> h2 { display: run-in; }
131-
h2:after { display: block; content: 'Thing'; }
132-
&lt;p> Text &lt;/p>
128+
&lt;h2> Header &lt;/h2> h2:after { display: block; content: 'Thing'; }
133129
</pre>
134130
<p>...would render in exactly the same way as the following document
135131
fragment and style sheet:</p>
136132
<pre>
137133
&lt;h2> Header &lt;span>Thing&lt;/span>&lt;/h2> h2 { display: block; }
138134
span { display: block; }
139-
&lt;p> Text &lt;/p>
140135
</pre>
141136
</div>
142137

css2/visuren.src

Lines changed: 14 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: visuren.src,v 2.183 2011-03-16 13:58:12 bbos Exp $ -->
3+
<!-- $Id: visuren.src,v 2.184 2011-03-16 17:03:47 bbos Exp $ -->
44
<head>
55
<title>Visual formatting model</title>
66
<meta name="editor" lang="tr" content="Tantek &Ccedil;elik">
@@ -119,8 +119,7 @@ specifies a box's type.
119119
element"><a name="block-level"><dfn>Block-level elements</dfn></a></span> are those elements of the source document that are formatted visually as
120120
blocks (e.g., paragraphs). The following values of the <span
121121
class="propinst-display">'display'</span> property make an element
122-
block-level: 'block', 'list-item', and 'run-in' (part of the
123-
time; see <a href="#run-in">run-in boxes</a>), and 'table'.
122+
block-level: 'block', 'list-item', and 'table'.
124123
</p>
125124

126125
<p><span class="index-def" title="block-level box"><dfn>Block-level
@@ -266,8 +265,7 @@ do not form new blocks of content; the content is distributed in lines
266265
within a paragraph, inline images,
267266
etc.). The following values of the <span
268267
class="propinst-display">'display'</span> property make an element
269-
inline-level: 'inline', 'inline-table', 'inline-block'
270-
and 'run-in' (part of the time; see <a href="#run-in">run-in boxes</a>).
268+
inline-level: 'inline', 'inline-table', and 'inline-block'.
271269

272270
Inline-level elements generate <span class="index-def"
273271
title="inline-level box"><dfn>inline-level
@@ -279,8 +277,7 @@ name="inline-box"><dfn>inline
279277
box</dfn></a></span> is one that is both inline-level and whose
280278
contents participate in its containing inline formatting context. A
281279
non-replaced element with a 'display' value of 'inline' generates an
282-
inline box. An element with a 'display' value of 'run-in' can also
283-
generate an inline box; see <a href="#run-in">run-in boxes.</a>
280+
inline box.
284281
Inline-level boxes that are not inline boxes (such as replaced
285282
inline-level elements, inline-block elements, and inline-table
286283
elements) are called <span class="index-def" title="atomic
@@ -327,96 +324,8 @@ simply called anonymous boxes in this specification.
327324
</p>
328325
<h3><a name="run-in">Run-in boxes</a></h3>
329326

330-
331-
332-
<p>A <span class="index-def" title="run-in element"><dfn>run-in
333-
element</dfn></span> (or pseudo-element) <var>A</var> behaves as
334-
follows:
335-
336-
<ol>
337-
<li>If <var>A</var> has any <a
338-
href="conform.html#child">children</a> that <a
339-
href="#inhibit-run-in">inhibit run-in behavior</a> (see below), then
340-
<var>A</var> is rendered as if it had 'display: block'.
341-
342-
<li>Let <var>B</var> be the first of <var>A</var>'s following <a
343-
href="conform.html#sibling">siblings</a> that is neither floating
344-
nor <a href="visuren.html#absolutely-positioned">absolutely
345-
positioned</a> nor has 'display: none'. If <var>B</var> exists and has a
346-
specified value for 'display' of 'block' or 'list-item' and is not
347-
<a href="conform.html#replaced-element">replaced,</a> then
348-
<var>A</var> is rendered as an 'inline' element at the start of
349-
<var>B</var>'s <a href="visuren.html#principal-box">principal
350-
box.</a> Note: <var>A</var> is rendered before <var>B</var>'s
351-
':before' pseudo-element, if any. See <a
352-
href="generate.html#before-after-content">12.1.</a>
353-
354-
<li>Otherwise, <var>A</var> is rendered as if it had 'display:
355-
block'.
356-
</ol>
357-
358-
<p>In the above, "siblings" and "children" include both normal
359-
elements and :before/:after pseudo-elements.
360-
361-
<p id="inhibit-run-in">An element or pseudo-element <var>C</var>
362-
<dfn><span class="index-def">inhibits run-in behavior</span></dfn> if
363-
one of the following is
364-
true. (Note that the definition is recursive.)
365-
366-
<ol>
367-
<li><var>C</var> is not floating and not <a
368-
href="visuren.html#absolutely-positioned">absolutely positioned</a>
369-
and the computed value of its 'display' is one of 'block',
370-
'list-item', 'table' or 'run-in'.
371-
372-
<li><var>C</var> has a computed value for 'display' of 'inline' and
373-
it has one or more children that inhibit run-in behavior. (Where
374-
"children" includes both normal elements and :before/:after
375-
pseudo-elements.)
376-
</ol>
377-
378-
<p>A 'run-in' box is useful for run-in headers, as
379-
in this example:
380-
</p>
381-
<div class="html-example">
382-
<pre><code class="html">
383-
&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"&gt;
384-
&lt;HTML&gt;
385-
&lt;HEAD&gt;
386-
&lt;TITLE&gt;A run-in box example&lt;/TITLE&gt;
387-
&lt;STYLE type="text/css"&gt;
388-
H3 { display: run-in }
389-
&lt;/STYLE&gt;
390-
&lt;/HEAD&gt;
391-
&lt;BODY&gt;
392-
&lt;H3&gt;A run-in heading.&lt;/H3&gt;
393-
&lt;P&gt;And a paragraph of text that
394-
follows it.
395-
&lt;/BODY&gt;
396-
&lt;/HTML&gt;
397-
</code></pre>
398-
</div>
399-
400-
<p>This example might be formatted as:</p>
401-
402-
<pre>
403-
<b>A run-in heading.</b> And a
404-
paragraph of text that
405-
follows it.
406-
</pre>
407-
408-
<p>Despite appearing visually part of the following block box,
409-
a run-in element still inherits properties from its parent
410-
in the source tree.
411-
It is undefined in CSS&nbsp;2.1 if a run-in inherits from a
412-
':first-line' pseudo-element.
413-
</p>
414-
415-
<p>Please consult the section on
416-
<a href="generate.html#before-after-content">generated content</a>
417-
for information about how run-in boxes interact with generated
418-
content.
419-
</p>
327+
<p>[This section exists so that the section numbers are the same as in
328+
previous drafts. Run-in boxes are not part of CSS&nbsp;2.1.]
420329

421330
<h3><a name="display-prop">The</a> <span
422331
class="propinst-display">'display'</span> property</h3>
@@ -476,8 +385,9 @@ name="value-def-run-in"><strong>run-in</strong></a></span>
476385
</dt>
477386
<dd>This value creates either block or
478387
inline boxes, depending on context.
479-
Properties apply to run-in boxes based on their
480-
final status (inline-level or block-level).
388+
'Run-in' is defined in CSS level&nbsp;3 (see <a
389+
href="/TR/css3-box">CSS basic box model</a>). It is not required for
390+
conformance to level&nbsp;2.
481391
</dd>
482392
<dt>
483393
<span class="value-inst-table">table</span>,
@@ -542,10 +452,9 @@ schemes:</dfn></span></p>
542452
flow includes <a href="#block-formatting">block formatting</a>
543453
of block-level boxes,
544454
<a href="#inline-formatting">inline formatting</a>
545-
of inline-level boxes, <a
455+
of inline-level boxes, and <a
546456
href="#relative-positioning">relative positioning</a> of
547-
block-level and inline-level boxes, and formatting of
548-
<a href="#run-in">run-in</a> boxes.
457+
block-level and inline-level boxes.
549458
</li>
550459
<li><a href="#floats">Floats</a>. In the float model,
551460
a box is first laid out according to the normal flow, then
@@ -1381,12 +1290,6 @@ other <a href="visuren.html#block-formatting">block formatting
13811290
contexts.</a>
13821291
</p>
13831292

1384-
<p>
1385-
For
1386-
<a href="#run-in">run-in boxes</a>,
1387-
this property applies to the final block box to which the run-in box belongs.
1388-
</p>
1389-
13901293
<p>Values have the following meanings when applied to non-floating
13911294
block-level boxes:</p>
13921295

@@ -1714,7 +1617,7 @@ as specified.
17141617
<table border="1">
17151618
<tr><th>Specified value </th><th style="width:30%">Computed value</th></tr>
17161619
<tr><td>inline-table </td><td>table</td></tr>
1717-
<tr><td>inline, run-in, table-row-group, table-column,
1620+
<tr><td>inline, table-row-group, table-column,
17181621
table-column-group, table-header-group, table-footer-group, table-row,
17191622
table-cell, table-caption, inline-block </td><td>block</td></tr>
17201623
<tr><td>others </td><td>same as specified</td></tr>
@@ -2319,9 +2222,8 @@ markup had been stripped, and the resulting character sequence had
23192222
been passed to an implementation of the Unicode bidirectional
23202223
algorithm for plain text that produced the same line-breaks as the
23212224
styled text.
2322-
In this process, replaced elements with 'display: inline' (and
2323-
replaced elements with 'display: run-in', when they generate
2324-
inline-level boxes) are treated as
2225+
In this process, replaced elements with 'display: inline'
2226+
are treated as
23252227
neutral characters, unless their <span
23262228
class="propinst-unicode-bidi">'unicode-bidi'</span> property has a
23272229
value other than 'normal', in which case they are treated as strong

0 commit comments

Comments
 (0)