Skip to content

Commit c210d31

Browse files
committed
1 parent bf05c10 commit c210d31

2 files changed

Lines changed: 33 additions & 24 deletions

File tree

css3-background/Overview.html

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@
2222

2323
<h1>CSS Backgrounds and Borders Module Level 3</h1>
2424

25-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 8 January 2011</h2>
25+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 20 January
26+
2011</h2>
2627

2728
<dl>
2829
<dt>This version:
2930

30-
<dd><!--<a href="http://www.w3.org/TR/2011/WD-css3-background-20110108">http://www.w3.org/TR/2011/ED-css3-background-20110108</a>-->
31+
<dd><!--<a href="http://www.w3.org/TR/2011/WD-css3-background-20110120">http://www.w3.org/TR/2011/ED-css3-background-20110120</a>-->
3132
<a
3233
href="http://dev.w3.org/csswg/css3-background">http://dev.w3.org/csswg/css3-background</a>
3334

@@ -1261,8 +1262,10 @@ <h3 id=the-background-clip><span class=secno>3.7. </span>The &lsquo;<a
12611262
</dl>
12621263

12631264
<p class=note>Note that the root element has a different background
1264-
painting area. See <a href="#special-backgrounds"> “The backgrounds of
1265-
special elements.”</a>
1265+
painting area, and thus the &lsquo;<a href="#background-clip"><code
1266+
class=property>background-clip</code></a>&rsquo; property has no effect
1267+
when specified on it. See <a href="#special-backgrounds"> “The
1268+
backgrounds of special elements.”</a>
12661269

12671270
<p class=note>Note that the background is always drawn <em>behind</em> the
12681271
border, if any. See “Elaborate description of Stacking Contexts” in <a
@@ -1511,10 +1514,11 @@ <h3 id=the-background-size><span class=secno>3.9. </span>The &lsquo;<a
15111514
background-image: url(flower.png) }
15121515
</pre>
15131516

1514-
<p>The following example rounds the height of the image to 25%, down from
1515-
the specified value of 30%. At 30%, three images would fit entirely and a
1516-
fourth only partially. After rounding, four images fit. The width of the
1517-
image is 20% of the background area width and is not rounded.
1517+
<p>The following example rounds the height of the image to 33.̅​​3%,
1518+
up from the specified value of 30%. At 30%, three images would fit
1519+
entirely and a fourth only partially. After rounding, three images fit.
1520+
The width of the image is 20% of the background area width and is not
1521+
rounded.
15181522

15191523
<pre>
15201524
p {
@@ -1569,9 +1573,9 @@ <h3 id=the-background-size><span class=secno>3.9. </span>The &lsquo;<a
15691573
background-size: 3em } /* = '3em auto' */
15701574
</pre>
15711575

1572-
<p>In the following example, the background is shown with a width of 3em
1573-
or slightly smaller, so that it fits a whole number of times in the width
1574-
of the background. The height is scaled proportionally to keep the
1576+
<p>In the following example, the background is shown with a width of
1577+
approximately 3em: scaled so that it fits a whole number of times in the
1578+
width of the background. The height is scaled proportionally to keep the
15751579
original aspect ratio:
15761580

15771581
<pre>
@@ -1593,9 +1597,11 @@ <h3 id=the-background-size><span class=secno>3.9. </span>The &lsquo;<a
15931597
</pre>
15941598

15951599
<p>In the following example, the background image is shown with a height
1596-
of 4em or slightly less, so that it fits a whole number of times in the
1597-
background height. The width is the width that correspond to a 4em height
1598-
at the original aspect ratio or slightly less:
1600+
of approximately 4em: scaled slightly so that it fits a whole number of
1601+
times in the background height. The width is the approximately the width
1602+
that correspond to a 4em height at the original aspect ratio: scaled
1603+
slightly so that it fits a whole number of times in the background width.
1604+
15991605

16001606
<pre>
16011607
div {
@@ -1720,7 +1726,7 @@ <h3 id=the-background><span class=secno>3.10. </span>The &lsquo;<a
17201726

17211727
<pre>
17221728
body { background: red }
1723-
p { background: 40% url("chess.png") / 10em gray
1729+
p { background: url("chess.png") 40% / 10em gray
17241730
round fixed border-box; }
17251731
</pre>
17261732

@@ -1760,7 +1766,7 @@ <h3 id=the-background><span class=secno>3.10. </span>The &lsquo;<a
17601766
full width of the element:
17611767

17621768
<pre>
1763-
E { background: #CCC top left url("metal.jpg") / 100% auto no-repeat}
1769+
E { background: #CCC url("metal.jpg") top left / 100% auto no-repeat}
17641770
</pre>
17651771
</div>
17661772

css3-background/Overview.src.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,9 +1025,9 @@ <h3 id="the-background-size">The 'background-size' property</h3>
10251025
background-image: url(flower.png) }
10261026
</pre>
10271027

1028-
<p>The following example rounds the height of the image to 25%, down
1028+
<p>The following example rounds the height of the image to 33.̅​​3%, up
10291029
from the specified value of 30%. At 30%, three images would fit
1030-
entirely and a fourth only partially. After rounding, four images
1030+
entirely and a fourth only partially. After rounding, three images
10311031
fit. The width of the image is 20% of the background area width and is
10321032
not rounded.
10331033

@@ -1081,7 +1081,7 @@ <h3 id="the-background-size">The 'background-size' property</h3>
10811081
</pre>
10821082

10831083
<p>In the following example, the background is shown with a width of
1084-
3em or slightly smaller, so that it fits a whole number of times in
1084+
approximately 3em: scaled so that it fits a whole number of times in
10851085
the width of the background. The height is scaled proportionally to
10861086
keep the original aspect ratio:
10871087

@@ -1102,10 +1102,13 @@ <h3 id="the-background-size">The 'background-size' property</h3>
11021102
background-repeat: repeat round;
11031103
background-size: 3em auto }
11041104
</pre>
1105+
11051106
<p>In the following example, the background image is shown with a
1106-
height of 4em or slightly less, so that it fits a whole number of
1107-
times in the background height. The width is the width that correspond
1108-
to a 4em height at the original aspect ratio or slightly less:
1107+
height of approximately 4em: scaled slightly so that it fits a whole
1108+
number of times in the background height. The width is the approximately
1109+
the width that correspond to a 4em height at the original aspect ratio:
1110+
scaled slightly so that it fits a whole number of times in the background
1111+
width.
11091112

11101113
<pre>
11111114
div {
@@ -1192,7 +1195,7 @@ <h3 id="the-background">The 'background' shorthand property</h3>
11921195

11931196
<pre>
11941197
body { background: red }
1195-
p { background: 40% url("chess.png") / 10em gray
1198+
p { background: url("chess.png") 40% / 10em gray
11961199
round fixed border-box; }
11971200
</pre>
11981201

@@ -1232,7 +1235,7 @@ <h3 id="the-background">The 'background' shorthand property</h3>
12321235
the full width of the element:
12331236

12341237
<pre>
1235-
E { background: #CCC top left url("metal.jpg") / 100% auto no-repeat}
1238+
E { background: #CCC url("metal.jpg") top left / 100% auto no-repeat}
12361239
</pre>
12371240
</div>
12381241

0 commit comments

Comments
 (0)