W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

[csswg-drafts] [css-backgrounds] Change canonical serialization for box-shadow

From: csnardi via GitHub <sysbot+gh@w3.org>
Date: Mon, 12 Feb 2018 23:34:57 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-296563100-1518478496-sysbot+gh@w3.org>
csnardi has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-backgrounds] Change canonical serialization for box-shadow ==
[The spec](https://drafts.csswg.org/css-backgrounds/#typedef-shadow) 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://drafts.fxtf.org/filter-effects/#funcdef-filter-drop-shadow) and `text-shadow` (see https://drafts.csswg.org/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()`.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2305 using your GitHub account
Received on Monday, 12 February 2018 23:34:59 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC