Skip to content

Scope the at-rules assertions to the block's own style - #249

Merged
KevinBatdorf merged 1 commit into
mainfrom
fix-at-rules-scope
Aug 15, 2026
Merged

Scope the at-rules assertions to the block's own style#249
KevinBatdorf merged 1 commit into
mainfrom
fix-at-rules-scope

Conversation

@KevinBatdorf

Copy link
Copy Markdown
Owner

The at-rules spec read page.content() — the whole document — so any @font-face or @keyframes shipped by the theme or core failed it. WordPress trunk ships one, which is why this only broke on nightly and blocked the 1.5.7 release.

The plugin strips both from the CSS it emits, and that <style id="pcss-block-*"> is all the test should have been reading.

The 1.5.7 release and tag were deleted; the version metadata is still on main, so it can be re-cut once this lands.

🤖 Generated with Claude Code

The test read the whole page, so any @font-face or @Keyframes from the
theme or core failed it. WordPress trunk ships one, which is why this
only broke on nightly.

The plugin strips both from the CSS it emits, and that style tag is all
the test should have been reading.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KevinBatdorf
KevinBatdorf merged commit 6844d6c into main Aug 15, 2026
3 checks passed
@KevinBatdorf
KevinBatdorf deleted the fix-at-rules-scope branch August 15, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant