Skip to content

Commit 0dcfe33

Browse files
committed
[css-backgrounds-3][css-backgrounds-4] Defined serialization of 'background-size'
1 parent 550a17c commit 0dcfe33

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

css-backgrounds-3/Overview.bs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1565,6 +1565,13 @@ Positioning Area: the 'background-origin' property</h3>
15651565
with other comma-separated background properties
15661566
to form each [=background image layer=].
15671567

1568+
<h4 id="bg-size-serialization">
1569+
Serialization of 'background-size' values</h4>
1570+
1571+
The [=specified value=] and [=computed value=] of the <<bg-size>> type
1572+
always serialize as two values, even when the second value is ''background-size/auto'',
1573+
due to the [[cssom#serializing-css-values|shortest, most backwards-compatible serialization principle]].
1574+
15681575
<h3 id="background" oldids="the-background">
15691576
Backgrounds Shorthand: the 'background' property</h3>
15701577

@@ -3689,6 +3696,8 @@ Changes since the 14 February 2023 Candidate Recommendation Snapshot</h3>
36893696
(<a href="https://github.com/w3c/csswg-drafts/issues/9286">Issue 9286</a>)
36903697
<li>Fixed syntax of 'box-shadow' to avoid allowing negative blur radii,
36913698
aligning it with the prose.
3699+
<li>Defined serialization of 'background-size' in [[#bg-size-serialization]].
3700+
(<a href="https://github.com/w3c/csswg-drafts/issues/7802">Issue 7802</a>)
36923701
</ul>
36933702

36943703

css-backgrounds-4/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,6 +1634,13 @@ Sizing Images: the 'background-size' property</h3>
16341634
with other comma-separated background properties
16351635
to form each [=background image layer=].
16361636

1637+
<h4 id="bg-size-serialization">
1638+
Serialization of 'background-size' values</h4>
1639+
1640+
The [=specified value=] and [=computed value=] of the <<bg-size>> type
1641+
always serialize as two values, even when the second value is ''background-size/auto'',
1642+
due to the [[cssom#serializing-css-values|shortest, most backwards-compatible serialization principle]].
1643+
16371644
<h3 id='background-layers'>
16381645
Background Image Layers: the 'background-tbd' shorthand property</h3>
16391646

0 commit comments

Comments
 (0)