fix(mix-blend-mode): replace "parent and background" with "backdrop" in description#44323
Open
xonaib wants to merge 2 commits into
Open
fix(mix-blend-mode): replace "parent and background" with "backdrop" in description#44323xonaib wants to merge 2 commits into
xonaib wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #41078
The current description says the element blends with "the content of the element's parent
and the element's background", which has two problems:
"element's background" implies the CSS
backgroundproperty of the element itself.That is what
background-blend-modedoes.mix-blend-modedoes NOT blend with theelement's own background.
"element's parent" is imprecise. Blending happens against the backdrop — all rendered
content behind the element within the same stacking context — which may include siblings,
not just the parent.
Per the W3C CSS Compositing and Blending spec §3.4.1:
Changes:
the stacking context guide
background-blend-modeVerified locally:
markdownlint-cli2 files/en-us/web/css/reference/properties/mix-blend-mode/index.mdnode scripts/filecheck/index.js --cwd=. files/en-us/web/css/reference/properties/mix-blend-mode/index.md