-
Notifications
You must be signed in to change notification settings - Fork 785
[css-backgrounds] Change canonical serialization for box-shadow #2305
Copy link
Copy link
Closed
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.TestedMemory aid - issue has WPT testsMemory aid - issue has WPT testscss-backgrounds-3Current WorkCurrent Work
Description
The spec declares the syntax for a shadow in box-shadow to be:
<shadow> = inset? && <length>{2,4} && <color>?
However, Firefox, WebKit, and Chrome all serialize this as <color>? && <length>{2,4} && inset?. This matches the serialization for drop-shadow() (see https://un5n798jx6qx6y24w79berhh.julianrbryant.com/filter-effects/#funcdef-filter-drop-shadow) and text-shadow (see https://un5n798jx6qx6j0rmf2verhh.julianrbryant.com/css-text-decor-3/#text-shadow-property), which both are declared as <color>? && <length>{2,3}.
For consistency, <shadow> should be defined as:
<shadow> = <color>? && <length>{2,4} && inset?
in order for serialization to match 3 out of the 4 major browsers and text-shadow/drop-shadow().
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Closed Accepted by CSSWG ResolutionCommenter SatisfiedCommenter has indicated satisfaction with the resolution / edits.Commenter has indicated satisfaction with the resolution / edits.TestedMemory aid - issue has WPT testsMemory aid - issue has WPT testscss-backgrounds-3Current WorkCurrent Work