Skip to content

[css-backgrounds-3][editorial] Negative values are invalid for 3rd <shadow> length#12761

Merged
SebastianZ merged 1 commit into
w3c:mainfrom
cdoublev:patch-6
Sep 12, 2025
Merged

[css-backgrounds-3][editorial] Negative values are invalid for 3rd <shadow> length#12761
SebastianZ merged 1 commit into
w3c:mainfrom
cdoublev:patch-6

Conversation

@cdoublev
Copy link
Copy Markdown
Collaborator

... as currently specified 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.

@cdoublev cdoublev added the css-backgrounds-3 Current Work label Sep 10, 2025
Comment thread css-backgrounds-3/Overview.bs Outdated
@SebastianZ
Copy link
Copy Markdown
Contributor

The changed syntax is also what we already have in CSS Borders 4. So once the little syntax adjustment is done, I'm fine with it.

Sebastian

@SebastianZ SebastianZ merged commit a8aa8df into w3c:main Sep 12, 2025
1 check passed
@SebastianZ
Copy link
Copy Markdown
Contributor

Thanks @cdoublev!

@SebastianZ
Copy link
Copy Markdown
Contributor

I've also added a note about this change to the Changes section.

Sebastian

@cdoublev cdoublev deleted the patch-6 branch September 12, 2025 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

css-backgrounds-3 Current Work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants