Skip to content

Commit cac2f80

Browse files
authored
[css-borders-4] Fixed and added definitions for box-shadow-offset: none (#9096)
Fixed and added definitions for `box-shadow-offset: none` and the expansion of the `box-shadow` shorthand
1 parent 48121e2 commit cac2f80

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

css-borders-4/Overview.bs

+21-16
Original file line numberDiff line numberDiff line change
@@ -622,16 +622,25 @@ Initial: none
622622
Applies to: all elements
623623
Inherited: no
624624
Percentages: N/A
625-
Computed value: either 'none' or a list,
626-
each item a pair of offsets (horizontal and vertical) from the element‘s box
627-
Animation type: by computed value
625+
Computed value: list, each item either 'none' or a pair of offsets
626+
(horizontal and vertical) from the element‘s box
627+
Animation type: by computed value,
628+
treating ''box-shadow-offset/none'' as ''0 0''
629+
when interpolated with non-'none' values.
628630
</pre>
629631

630632
<p>The 'box-shadow-offset' property defines one or more drop shadow offsets.
631-
The property accepts a comma-separated list of horizontal and vertical offset pairs,
633+
The property accepts a comma-separated list.
634+
Each item in that list can either be the ''box-shadow-offset/none'' value,
635+
which indicates no shadow, or a pair of horizontal and vertical offsets,
632636
where both values are described as <<length>> values.
633637

634638
<dl>
639+
<dt><dfn id="shadow-offset-none">none</dfn>
640+
<dd>
641+
The shadow will not be rendered.
642+
The values of other box shadow properties corresponding to this shadow have no effect.
643+
635644
<dt><dfn id="shadow-offset-x">1st <<length>></dfn>
636645
<dd>
637646
Specifies the <dfn>horizontal offset</dfn> of the shadow.
@@ -746,25 +755,21 @@ Initial: none
746755
Applies to: all elements
747756
Inherited: no
748757
Percentages: N/A
749-
Computed value: either the keyword ''box-shadow-offset/none'' or
750-
a list, each item consisting of four absolute lengths
751-
plus a computed color and optionally also a ''box-shadow-position/inset'' keyword
752-
Animation type: by computed value,
753-
treating ''box-shadow-offset/none'' as a zero-item list
754-
and appending blank shadows (''transparent 0 0 0 0'')
755-
with a corresponding ''box-shadow-position/inset'' keyword as needed
756-
to match the longer list
757-
if the shorter list is otherwise compatible with the longer one
758+
Computed value: see individual properties
759+
Animation type: see individual properties
758760
</pre>
759761

760762
<p>The 'box-shadow' property attaches one or more drop-shadows to the box.
761-
The property accepts either the ''box-shadow-offset/none'' value, which indicates no shadows,
762-
or a comma-separated list of shadows, ordered front to back.
763+
The property accepts a comma-separated list of shadows,
764+
ordered front to back.
763765

764766
<p>Each shadow is given as a <<spread-shadow>>,
765767
outlining the 'box-shadow-offset', and optional values for the 'box-shadow-blur',
766768
'box-shadow-spread', 'box-shadow-color', and 'box-shadow-position'.
767-
Omitted lengths are 0; omitted colors default to the ''currentcolor'' value.
769+
Omitted lengths are '0';
770+
omitted colors default to ''transparent'' when the specified offset is ''box-shadow-offset/none''
771+
and to ''currentcolor'' otherwise.
772+
768773
<pre class=prod>
769774
<dfn><<spread-shadow>></dfn> = <<'box-shadow-color'>>? &amp;&amp; [ <<'box-shadow-offset'>> [ <<'box-shadow-blur'>> <<'box-shadow-spread'>>? ]? ] &amp;&amp; <<'box-shadow-position'>>?</pre>
770775

0 commit comments

Comments
 (0)