[csswg-drafts] Pull Request: [css-backgrounds-3][editorial] Negative values are invalid for 3rd `<shadow>` length

cdoublev has just submitted a new pull request for https://github.com/w3c/csswg-drafts:

== [css-backgrounds-3][editorial] Negative values are invalid for 3rd `<shadow>` length ==
... as currently [specified](https://drafts.csswg.org/css-backgrounds-3/#typedef-shadow) in prose:

  > **3rd `<length [0,∞]>`**
  >
  > Specifies the blur radius. Negative values are invalid.

... but the current syntax allows `1px 1px -1px` to match:

  > `<shadow> = <color>? && [<length>{2} <length [0,∞]>? <length>?] && inset?`

... while this is invalid in mainstream browsers.

See https://github.com/w3c/csswg-drafts/pull/12761


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 September 2025 03:49:59 UTC