Skip to content

Commit aaa2783

Browse files
authored
[css-backgrounds-3][css-borders-4] Fixed definition for where box shadows apply (w3c#9296)
1 parent 5d806c1 commit aaa2783

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

css-backgrounds-3/Overview.bs

+8-5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ spec:css2; type:value; text:inline-table
2828
spec:css2; type:value; text:table-cell
2929
spec:css2; type:property; text:overflow
3030
spec:css2; type:value; text:visible
31+
spec:css-break-4; type:dfn; text:fragment
3132
spec:css-color-4; type:property; text:color
3233
spec:css-color-4; type:value; text:transparent
3334
spec:selectors-3; type:selector; text: ::first-letter
@@ -2512,9 +2513,9 @@ Layering, Layout, and Other Details</h4>
25122513
and the [=inner shadows=] of an element are drawn immediately above the background of that element
25132514
(below the borders and border image, if any).
25142515

2515-
<p>If an element has multiple boxes, all of them get drop shadows,
2516-
but shadows are only drawn where borders would also be drawn;
2517-
see 'box-decoration-break'.
2516+
<p>Unless otherwise specified, drop shadows are only applied to the [=principal box=].
2517+
If the affected box has multiple fragments,
2518+
the shadows are applied as specified in 'box-decoration-break'.
25182519

25192520
<p>Shadows do not trigger scrolling or increase the size of the scrollable area.
25202521

@@ -2569,8 +2570,8 @@ The lists below describe which features from this specification are in each leve
25692570
<h2 id="changes">
25702571
Changes</h2>
25712572

2572-
<h3 id="changes-2024-02">
2573-
Changes since the 14 February 2024 Candidate Recommendation Snapshot</h3>
2573+
<h3 id="changes-2023-02">
2574+
Changes since the 14 February 2023 Candidate Recommendation Snapshot</h3>
25742575

25752576
<ul>
25762577
<li>Defined serialization of 'background-position' in [[#bg-position-serialization]].
@@ -2591,6 +2592,8 @@ Changes since the 14 February 2024 Candidate Recommendation Snapshot</h3>
25912592
to include “Animation Type” and “Logical Property Group”.
25922593
<li>Streamlined property grammar definitions using the latest
25932594
[=CSS/value definition syntax=].
2595+
<li>Fixed the definition for where box shadows apply.
2596+
(<a href="https://github.com/w3c/csswg-drafts/issues/9286">Issue 9286</a>)
25942597
</ul>
25952598

25962599

css-borders-4/Overview.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -961,9 +961,9 @@ Layering, Layout, and Other Details</h4>
961961
and the <i>inner shadows</i> of an element are drawn immediately above the background of that element
962962
(below the borders and border image, if any).
963963

964-
<p>If an element has multiple boxes, all of them get drop shadows,
965-
but shadows are only drawn where borders would also be drawn;
966-
see 'box-decoration-break'.
964+
<p>Unless otherwise specified, drop shadows are only applied to the [=principal box=].
965+
If the affected box has multiple fragments,
966+
the shadows are applied as specified in 'box-decoration-break'.
967967

968968
<p>Shadows do not trigger scrolling or increase the size of the scrollable area.
969969

0 commit comments

Comments
 (0)