Skip to content

Commit b4b3427

Browse files
authored
[css-backgrounds-3][css-backgrounds-4] Defined serialization of 'background-size' (#13053)
1 parent 2dfb5f7 commit b4b3427

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
@@ -1589,6 +1589,13 @@ Positioning Area: the 'background-origin' property</h3>
15891589
with other comma-separated background properties
15901590
to form each [=background image layer=].
15911591

1592+
<h4 id="bg-size-serialization">
1593+
Serialization of 'background-size' values</h4>
1594+
1595+
The [=specified value=] and [=computed value=] of the <<bg-size>> type
1596+
always serialize as two values, even when the second value is ''background-size/auto'',
1597+
due to the [[cssom#serializing-css-values|shortest, most backwards-compatible serialization principle]].
1598+
15921599
<h3 id="background" oldids="the-background">
15931600
Backgrounds Shorthand: the 'background' property</h3>
15941601

@@ -3743,6 +3750,8 @@ Changes since the 14 February 2023 Candidate Recommendation Snapshot</h3>
37433750
[=CSS/value definition syntax=].
37443751
<li>Fixed the definition for where box shadows apply.
37453752
(<a href="https://github.com/w3c/csswg-drafts/issues/9286">Issue 9286</a>)
3753+
<li>Defined serialization of 'background-size' in [[#bg-size-serialization]].
3754+
(<a href="https://github.com/w3c/csswg-drafts/issues/7802">Issue 7802</a>)
37463755
</ul>
37473756

37483757

css-backgrounds-4/Overview.bs

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

1644+
<h4 id="bg-size-serialization">
1645+
Serialization of 'background-size' values</h4>
1646+
1647+
The [=specified value=] and [=computed value=] of the <<bg-size>> type
1648+
always serialize as two values, even when the second value is ''background-size/auto'',
1649+
due to the [[cssom#serializing-css-values|shortest, most backwards-compatible serialization principle]].
1650+
16441651
<h3 id='background-layers'>
16451652
Background Image Layers: the 'background-tbd' shorthand property</h3>
16461653

0 commit comments

Comments
 (0)