Skip to content

[css-mixins] Test that @layer is dropped inside mixins#61427

Merged
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-8114962
Jul 20, 2026
Merged

[css-mixins] Test that @layer is dropped inside mixins#61427
chromium-wpt-export-bot merged 1 commit into
masterfrom
chromium-export-cl-8114962

Conversation

@chromium-wpt-export-bot

@chromium-wpt-export-bot chromium-wpt-export-bot commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Blink already drops @layer inside mixins per the CSSWG resolution [0],
but existing tests only checked the mixin stayed valid, not that @layer
was dropped.

Add test cases asserting @layer is dropped at every depth inside a
mixin, each keeping a sibling "color: green" rule to confirm only the
@layer, not its container, was removed.

[0] w3c/csswg-drafts#12417

Bug: 440050694
Change-Id: I08c354d23e25f33ba0b843292bb931009570319d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8114962
Commit-Queue: Stephanie Zhang <stephanie.zhang@microsoft.com>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1664819}

Blink already drops @layer inside mixins per the CSSWG resolution [0],
but existing tests only checked the mixin stayed valid, not that @layer
was dropped.

Add test cases asserting @layer is dropped at every depth inside a
mixin, each keeping a sibling "color: green" rule to confirm only the
@layer, not its container, was removed.

[0] w3c/csswg-drafts#12417

Bug: 440050694
Change-Id: I08c354d23e25f33ba0b843292bb931009570319d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8114962
Commit-Queue: Stephanie Zhang <stephanie.zhang@microsoft.com>
Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1664819}

@wpt-pr-bot wpt-pr-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

The review process for this patch is being conducted in the Chromium project.

@chromium-wpt-export-bot
chromium-wpt-export-bot merged commit 55394a9 into master Jul 20, 2026
19 checks passed
@chromium-wpt-export-bot
chromium-wpt-export-bot deleted the chromium-export-cl-8114962 branch July 20, 2026 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants