Skip to content

fix: remove invalid :global() pseudo-class in agent-setup.css#32262

Open
mvvmm wants to merge 1 commit into
productionfrom
fix/agent-setup-css-global-pseudo-class
Open

fix: remove invalid :global() pseudo-class in agent-setup.css#32262
mvvmm wants to merge 1 commit into
productionfrom
fix/agent-setup-css-global-pseudo-class

Conversation

@mvvmm

@mvvmm mvvmm commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

.agent-setup-troubleshooting-solution-body :global(code) uses Astro/Vue-style :global() scoping syntax inside a plain global stylesheet (src/styles/agent-setup.css), where it has no meaning — this file isn't a scoped Astro component <style> block. lightningcss (Vite's CSS minifier) correctly flags it: 'global' is not recognized as a valid pseudo-class.

'.agent-setup-troubleshooting-solution-body :global(code)' uses
Astro/Vue-style :global() scoping syntax inside a plain global
stylesheet, where it has no meaning. lightningcss (Vite's CSS
minifier) correctly warns this isn't a recognized pseudo-class.

This selector is also the last thing that ever logs during Workers
Builds preview builds before they hang and eventually hit the
20-minute build timeout -- every single preview build for weeks has
stalled immediately after lightningcss processes this exact rule.
Removing the invalid :global() wrapper (this file has no scoping to
escape from in the first place) to see if it resolves the hang.
@mvvmm
mvvmm requested a review from a team as a code owner July 22, 2026 23:04
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review

✅ No issues found in commit 99827fb.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

No code review issues found.

Conventions

No convention issues found.

Style Guide Review

No style-guide issues found.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
* @cloudflare/product-owners

@github-actions

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant