Skip to content

Commit

Permalink
[css-backgrounds-3][css-borders-4] Fixed definition for where box sha…
Browse files Browse the repository at this point in the history
…dows apply (#9296)
  • Loading branch information
SebastianZ authored Dec 25, 2023
1 parent 5d806c1 commit aaa2783
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions css-backgrounds-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:css2; type:value; text:inline-table
spec:css2; type:value; text:table-cell
spec:css2; type:property; text:overflow
spec:css2; type:value; text:visible
spec:css-break-4; type:dfn; text:fragment
spec:css-color-4; type:property; text:color
spec:css-color-4; type:value; text:transparent
spec:selectors-3; type:selector; text: ::first-letter
Expand Down Expand Up @@ -2512,9 +2513,9 @@ Layering, Layout, and Other Details</h4>
and the [=inner shadows=] of an element are drawn immediately above the background of that element
(below the borders and border image, if any).

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

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

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

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

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


Expand Down
6 changes: 3 additions & 3 deletions css-borders-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -961,9 +961,9 @@ Layering, Layout, and Other Details</h4>
and the <i>inner shadows</i> of an element are drawn immediately above the background of that element
(below the borders and border image, if any).

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

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

Expand Down

0 comments on commit aaa2783

Please sign in to comment.