Skip to content

Commit e1c5f4f

Browse files
authored
[css-borders-4] Defined box-shadow-* as coordinating list property group (#9186)
1 parent ffbe170 commit e1c5f4f

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

css-borders-4/Overview.bs

+31
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,37 @@ Animation type: see individual properties
773773
<pre class=prod>
774774
<dfn><<spread-shadow>></dfn> = <<'box-shadow-color'>>? &amp;&amp; [ <<'box-shadow-offset'>> [ <<'box-shadow-blur'>> <<'box-shadow-spread'>>? ]? ] &amp;&amp; <<'box-shadow-position'>>?</pre>
775775

776+
<h3 id="shadow-layers">
777+
Layering, Layout, and Other Details</h4>
778+
779+
Drop shadows are declared in the [=coordinated value list=]
780+
constructed from the 'box-shadow-*' properties,
781+
which form a [=coordinating list property group=]
782+
with 'box-shadow-offset' as the [=coordinating list base property=].
783+
See [[css-values-4#linked-properties]].
784+
785+
<p>The shadow effects are applied front-to-back:
786+
the first shadow is on top and the others are layered behind.
787+
Shadows do not influence layout and may overlap (or be overlapped by)
788+
other boxes and text or their shadows.
789+
In terms of stacking contexts and the painting order,
790+
the <i>outer box-shadows</i> of an element are drawn immediately below the background of that element,
791+
and the <i>inner shadows</i> of an element are drawn immediately above the background of that element
792+
(below the borders and border image, if any).
793+
794+
<p>If an element has multiple boxes, all of them get drop shadows,
795+
but shadows are only drawn where borders would also be drawn;
796+
see 'box-decoration-break'.
797+
798+
<p>Shadows do not trigger scrolling or increase the size of the scrollable area.
799+
800+
<p>Outer shadows have no effect on internal table elements in the collapsing border model.
801+
If a shadow is defined for single border edge in the collapsing border model
802+
that has multiple border thicknesses
803+
(e.g. an outer shadow on a table where one row has thicker borders than the others,
804+
or an inner shadow on a rowspanning table cell that adjoins cells with different border thicknesses),
805+
the exact position and rendering of its shadows are undefined.
806+
776807
<h2 id="changes">
777808
Changes</h2>
778809

0 commit comments

Comments
 (0)