Skip to content

Commit 5d53155

Browse files
committed
Additional clarifications to margin box generation and 'content'. <http://lists.w3.org/Archives/Public/www-style/2012Jun/0190.html>
1 parent 656e15f commit 5d53155

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

css3-page/Overview.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,9 +1270,13 @@ <h3 id=margin-at-rules><span class=secno>6.1. </span>At-rules for margin
12701270
<h3 id=populating-margin-boxes><span class=secno>6.2. </span>Populating
12711271
margin boxes</h3>
12721272

1273-
<p>A margin box is generated if and only if the computed value of its
1274-
<code class=property>content</code>’ property does not match that of
1275-
its initial value. Otherwise it behaves as if it had ‘<code
1273+
<p>As with the ‘<code class=css>:before</code>’ and ‘<code
1274+
class=css>:after</code>’ pseudo-elements, a specified ‘<code
1275+
class=property>content</code>’ of ‘<code class=css>normal</code>
1276+
on a margin box computes to ‘<code class=css>none</code>’, and the
1277+
margin box is generated if and only if the computed value of its ‘<code
1278+
class=property>content</code>’ property is not ‘<code
1279+
class=property>none</code>’. Otherwise it behaves as if it had ‘<code
12761280
class=css>display: none</code>’.
12771281

12781282
<div class=example>

css3-page/Overview.src.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,10 @@ <h3 id="margin-at-rules">At-rules for margin boxes</h3>
904904

905905
<h3 id="populating-margin-boxes">Populating margin boxes</h3>
906906

907-
<p>A margin box is generated if and only if the computed value of its
908-
'content' property does not match that of its initial value.
907+
<p>As with the '':before'' and '':after'' pseudo-elements,
908+
a specified 'content' of ''normal'' on a margin box computes to ''none'',
909+
and the margin box is generated if and only if the computed value of its
910+
'content' property is not 'none'.
909911
Otherwise it behaves as if it had ''display: none''.
910912

911913
<div class="example">

0 commit comments

Comments
 (0)