Skip to content

Commit 903a439

Browse files
committed
[css2] Håkon's edits (done by Ian Hickson)
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%402111
1 parent 9fdd43b commit 903a439

2 files changed

Lines changed: 41 additions & 5 deletions

File tree

css2/generate.src

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ body:after {
110110

111111
</div>
112112

113-
113+
<del>
114114
<P>User agents must ignore the following properties with :before and
115115
:after pseudo-elements: <span
116116
class="propinst-position">'position'</span>, <span
@@ -140,7 +140,40 @@ has any other value, the pseudo-element will behave as if its value
140140
were 'inline'.
141141

142142
</ul>
143+
</del>
143144

145+
<ins cite="http://lists.w3.org/Archives/Member/w3c-css-wg/2003JulSep/0038.html">
146+
<p>The :before and :after pseudo-elements elements interact with other
147+
boxes, such as run-in boxes, as if they were real elements inserted just
148+
inside their associated element.</p>
149+
150+
<div class="example">
151+
<p>For example, the following document fragment and stylesheet:</p>
152+
<pre>
153+
&lt;h2> Header &lt;/h2> h2 { display: run-in; }
154+
&lt;p> Text &lt;/p> p:before { display: block; content: 'Some'; }
155+
</pre>
156+
<p>...would render in exactly the same way as the following document
157+
fragment and stylesheet:</p>
158+
<pre>
159+
&lt;h2> Header &lt;/h2> h2 { display: run-in; }
160+
&lt;p>&lt;span>Same&lt;/span> Text &lt;/p> span { display: block; content: 'Some'; }
161+
</pre>
162+
<p>Similarly, the following document fragment and stylesheet:</p>
163+
<pre>
164+
&lt;h2> Header &lt;/h2> h2 { display: run-in; }
165+
h2:after { display: block; content: 'Thing'; }
166+
&lt;p> Text &lt;/p>
167+
</pre>
168+
<p>...would render in exactly the same way as the following document
169+
fragment and stylesheet:</p>
170+
<pre>
171+
&lt;h2> Header &lt;span>Thing&lt;/span>&lt;/h2> h2 { display: block; }
172+
span { display: block; }
173+
&lt;p> Text &lt;/p>
174+
</pre>
175+
</div>
176+
</ins>
144177

145178
<h2><a name="content">The</a> <span
146179
class="propinst-content">'content'</span> property</h2>
@@ -249,7 +282,7 @@ h1:before {
249282
is not fed back to the document language processor (e.g., for
250283
reparsing).
251284

252-
285+
<del cite="http://lists.w3.org/Archives/Member/w3c-css-wg/2003JulSep/0038.html">
253286
<h2><a name="run-in-gen">Interaction</a> of :before and :after
254287
with <span
255288
class="index-inst" title="run-in"><span
@@ -316,6 +349,7 @@ Centaurs: ... have hoofs
316349
... have a tail
317350
</pre>
318351
</div>
352+
</del>
319353

320354
<h2><a name="quotes">Quotation marks</a></h2>
321355

@@ -711,7 +745,8 @@ they allow style sheets to specify the marker type (image, glyph, or
711745
number), and the marker position with respect to the principal box
712746
(outside it or within it before content). They do not allow authors to
713747
specify distinct style (colors, fonts, alignment, etc.) for the list
714-
marker or adjust its position with respect to the principal box.
748+
marker or adjust its position with respect to the principal box, these
749+
may be derived from the principal box.
715750

716751
<P>The <a href="colors.html#background-properties">background
717752
properties</a> apply to the principal box only; an 'outside' marker

css2/sample.src

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: sample.src,v 2.29 2003-01-27 22:30:55 bbos Exp $ -->
3+
<!-- $Id: sample.src,v 2.30 2003-07-14 13:47:03 bbos Exp $ -->
44
<HEAD>
55
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
66
<TITLE>A sample style sheet for HTML 4.0</TITLE>
@@ -72,11 +72,12 @@ kbd, samp { font-family: monospace }
7272
pre { white-space: pre }
7373
button, textarea,
7474
input, object,
75-
select, img { display:inline-block; }
75+
select<del>, img</del> { display:inline-block; }
7676
big { font-size: 1.17em }
7777
small, sub, sup { font-size: .83em }
7878
sub { vertical-align: sub }
7979
sup { vertical-align: super }
80+
<ins cite="http://lists.w3.org/Archives/Member/w3c-css-wg/2003AprJun/0459.html">td, th { vertical-align: middle }</ins>
8081
s, strike, del { text-decoration: line-through }
8182
hr { border: 1px inset }
8283
ol, ul, dir,

0 commit comments

Comments
 (0)