@@ -622,16 +622,25 @@ Initial: none
622
622
Applies to : all elements
623
623
Inherited : no
624
624
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.
628
630
</pre>
629
631
630
632
<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,
632
636
where both values are described as <<length>> values.
633
637
634
638
<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
+
635
644
<dt> <dfn id="shadow-offset-x">1st <<length>></dfn>
636
645
<dd>
637
646
Specifies the <dfn>horizontal offset</dfn> of the shadow.
@@ -746,25 +755,21 @@ Initial: none
746
755
Applies to : all elements
747
756
Inherited : no
748
757
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
758
760
</pre>
759
761
760
762
<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.
763
765
764
766
<p> Each shadow is given as a <<spread-shadow>> ,
765
767
outlining the 'box-shadow-offset' , and optional values for the 'box-shadow-blur' ,
766
768
'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
+
768
773
<pre class=prod>
769
774
<dfn><<spread-shadow>></dfn> = <<'box-shadow-color'>> ? && [ <<'box-shadow-offset'>> [ <<'box-shadow-blur'>> <<'box-shadow-spread'>> ? ]? ] && <<'box-shadow-position'>> ?</pre>
770
775
0 commit comments