Skip to content

Remove incorrect detail for drop-shadow syntax#43324

Merged
hamishwillee merged 2 commits intomdn:mainfrom
mateuszJS:main
Mar 6, 2026
Merged

Remove incorrect detail for drop-shadow syntax#43324
hamishwillee merged 2 commits intomdn:mainfrom
mateuszJS:main

Conversation

@mateuszJS
Copy link
Contributor

@mateuszJS mateuszJS commented Mar 3, 2026

Description

Misleading information that filter: drop-shadow uses 0 for offset length if value is not provided. drop-shadow with one <length> is invalid. Additionally, on the start of the paragraph it's specified that 2 or 3 values are accepted, so it's impossible to omit x or y offset. In my opinion, the paragraph without that sentence describes the behaviour in a bit cleaner way.

Additional details

I assume it was copy-pasted from spec:
The default value for omitted values is missing length values set to 0 and the missing used color is taken from the color property.. From the spec perspective it might be technically correct that 0 is used by default and it's later interpreted as no gaussian blur but from developer friendly docs it introduces a bit more confusion than help.

Let me know if you agree.

Copilot AI review requested due to automatic review settings March 3, 2026 10:59
@mateuszJS mateuszJS requested a review from a team as a code owner March 3, 2026 10:59
@mateuszJS mateuszJS requested review from hamishwillee and removed request for a team March 3, 2026 10:59
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs size/xs [PR only] 0-5 LoC changed labels Mar 3, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a misleading statement in the MDN drop-shadow() documentation that implied missing length values default to 0, which could be read as allowing omitted offset values even though drop-shadow() requires at least two lengths.

Changes:

  • Deletes the sentence claiming missing <length> values default to 0 in the <length> parameter description.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mateuszJS - I completely agree. Thank you.

@hamishwillee hamishwillee merged commit be1adae into mdn:main Mar 6, 2026
7 checks passed
jdatapple pushed a commit to jdatapple/content that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:CSS Cascading Style Sheets docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants