Skip to content

fix(css-cascade-layers): let the next plugins process the nodes they insert in the layer - #13123

Merged
slorber merged 1 commit into
claude/css-layers-wrap-reprofrom
claude/css-layers-wrap-fix
Nov 26, 2026
Merged

slorber merged 1 commit into
claude/css-layers-wrap-reprofrom
claude/css-layers-wrap-fix

Conversation

@slorber

@slorber slorber commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Found while working on #13088.

When it wraps a file in @layer, @docusaurus/plugin-css-cascade-layers appends a plain {type: 'atrule', nodes} object holding the nodes of a root clone. PostCSS adopts that object as-is and doesn't fix the parent of its children: the wrapped rules still point to the detached clone. When a later plugin inserts a node, PostCSS marks the clone as dirty instead of the real tree, and no plugin visits the new node.

The plugin now moves the root nodes into a real AtRule, created with the AtRule helper that PostCSS passes to Once.

On sites whose Browserslist targets old browsers (like the defaults query, which includes op_mini all), it fixes the CSS of the wrapped files:

  • postcss-preset-env applies its cascade layers polyfill to the right selectors. With Infima, it adds 92 :not(#\#) instead of 516, the same as a file with the @layer written in its source.
  • The fallbacks that preset-env inserts are visited by the next plugins, and preset-env keeps its light-dark() fallback.
  • On RTL sites, rtlcss flips the var() fallbacks of preset-env.

With the Docusaurus default Browserslist queries (baseline widely available), the output is byte-identical.

Test Plan

The output of the unit test added by #13122 now has the inserted fallback flipped: right:1px;right:var(--width) instead of left:1px;right:var(--width).

Test links

Deploy preview: https://deploy-preview-13123--docusaurus-2.netlify.app/

Related issues/PRs

Stacked on #13122

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes
    • CSS declarations are now retained when styles are wrapped in cascade layers, helping preserve the intended styling.
  • Tests
    • Updated expectations to verify that fallback styles use right-side positioning alongside the existing width-based declaration. This keeps test coverage aligned with the current CSS output.

@slorber
slorber requested a review from Josh-Cena as a code owner November 26, 2026 14:34
@slorber slorber added pr: bug fix This PR fixes a bug in a past release. Argos Add this label to run UI visual regression tests. See argos.yml GH action. labels Nov 26, 2026
@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label Nov 26, 2026
@coderabbitai

coderabbitai Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The plugin now creates cascade layer rules with PostCSS helpers and moves the root nodes into them. Its Once hook passes those helpers to the wrapper. The test snapshot now expects the fallback declaration to be right:1px.

Changes: Cascade Layer Wrapping

Layer / File(s) Summary
Create and apply the cascade layer rule
packages/docusaurus-plugin-css-cascade-layers/src/postCssPlugin.ts, packages/docusaurus-plugin-css-cascade-layers/src/__tests__/postCssPlugin.test.ts
wrapCssRootInLayer uses PostCSS helpers to create an AtRule and move the root nodes into it. The Once hook passes the helpers when a layer is found. The test snapshot expects right:1px instead of left:1px; right:var(--width) remains.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

  • meta/docusaurus#13122: Adds a unit test in the same test file. Its snapshot records the plugin behavior that this change addresses.
  • meta/docusaurus#13088: Fixes a related var() fallback issue involving later plugin visitors.
Merge Risk: Minimal · up to 9035f

This change makes the cascade layers plugin produce correct output for later PostCSS plugins, and no merge-blocking risk was identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the changed package (css-cascade-layers) and the main effect: the plugin now wraps root nodes in a real PostCSS AtRule, so later plugins visit nodes they insert into the layer. The raw…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title names the changed package (css-cascade-layers) and the main effect: the plugin now wraps root nodes in a real PostCSS AtRule, so later plugins visit nodes they insert into the layer. The raw summary confirms this change in postCssPlugin.ts (wrapCssRootInLayer now uses AtRule and moves the root nodes) and the test snapshot update. The title's conventional-commit prefix 'fix' matches the stated bug fix in the objectives.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: bdd65aba-f21e-4934-9406-f746e6aae224
Commits

Reviewing files that changed from the base of the PR and between 454c45a and 9035f92.

Files selected for processing: 1

  • packages/docusaurus-plugin-css-cascade-layers/src/__tests__/postCssPlugin.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@slorber
slorber added this pull request to stack #13124 November 26, 2026 14:34
@slorber slorber added Argos Add this label to run UI visual regression tests. See argos.yml GH action. and removed Argos Add this label to run UI visual regression tests. See argos.yml GH action. labels Nov 26, 2026
@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ [V2]

Name Link
🔨 Latest commit 9035f92
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6b0847096ae281f16445f128
😎 Deploy Preview https://deploy-preview-13123--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@argos-ci

argos-ci Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
infima (Inspect) ✅ No changes detected - Nov 26, 2026, 2:52 PM
screenshots (Inspect) ✅ No changes detected - Nov 26, 2026, 2:52 PM
text-snapshots (Inspect) ✅ No changes detected - Nov 26, 2026, 2:52 PM

@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 12.1 MB

ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/codeTranslations.json 2 B 0 B
website/.docusaurus/docusaurus.config.mjs 28.8 kB 0 B
website/.docusaurus/globalData.json 42.3 kB 0 B
website/.docusaurus/i18n.json 1.36 kB 0 B
website/.docusaurus/registry.js 184 kB 0 B
website/.docusaurus/routes.js 94.3 kB 0 B
website/.docusaurus/routesChunkNames.json 96.2 kB 0 B
website/.docusaurus/site-metadata.json 2.59 kB 0 B
website/build/assets/css/styles.**********.css 146 kB 0 B
website/build/assets/js/main.**********.js 766 kB 0 B
website/build/assets/js/runtime~main.**********.js 43.1 kB 0 B
website/build/blog.html 79.1 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus.html 67.1 kB +1 B (0%)
website/build/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus.html 46.3 kB +1 B (0%)
website/build/blog/2018/09/11/Towards-Docusaurus-2.html 50.7 kB +6 B (+0.01%)
website/build/blog/2018/12/14/Happy-First-Birthday-Slash.html 30.4 kB +1 B (0%)
website/build/blog/2019/12/30/docusaurus-2019-recap.html 41.4 kB +1 B (0%)
website/build/blog/2020/01/07/tribute-to-endi.html 33.9 kB +1 B (0%)
website/build/blog/2021/01/19/docusaurus-2020-recap.html 52.7 kB +1 B (0%)
website/build/blog/2021/03/09/releasing-docusaurus-i18n.html 48.7 kB +1 B (0%)
website/build/blog/2021/05/12/announcing-docusaurus-two-beta.html 49.4 kB +1 B (0%)
website/build/blog/2021/11/21/algolia-docsearch-migration.html 55.8 kB +1 B (0%)
website/build/blog/2022/01/24/docusaurus-2021-recap.html 44.5 kB +1 B (0%)
website/build/blog/2022/08/01/announcing-docusaurus-2.0.html 136 kB +1 B (0%)
website/build/blog/2022/09/01/docusaurus-2.1.html 52 kB +1 B (0%)
website/build/blog/archive.html 24.8 kB 0 B
website/build/blog/authors.html 52.1 kB 0 B
website/build/blog/authors/j-marcey.html 72.2 kB 0 B
website/build/blog/authors/josh-cena.html 48.4 kB 0 B
website/build/blog/authors/lex-111.html 57.4 kB 0 B
website/build/blog/authors/slorber.html 82.9 kB 0 B
website/build/blog/authors/slorber/page/2.html 82.2 kB 0 B
website/build/blog/authors/slorber/page/3.html 85.7 kB 0 B
website/build/blog/authors/slorber/page/4.html 98.5 kB 0 B
website/build/blog/authors/slorber/page/5.html 54.9 kB 0 B
website/build/blog/authors/yangshun.html 68.2 kB 0 B
website/build/blog/authors/zpao.html 48.9 kB 0 B
website/build/blog/page/2.html 78.3 kB 0 B
website/build/blog/page/3.html 82.7 kB 0 B
website/build/blog/page/4.html 87.2 kB 0 B
website/build/blog/page/5.html 74.5 kB 0 B
website/build/blog/page/6.html 42 kB 0 B
website/build/blog/preparing-your-site-for-docusaurus-v3.html 129 kB +1 B (0%)
website/build/blog/releases/2.2.html 52 kB +1 B (0%)
website/build/blog/releases/2.3.html 62.6 kB 0 B
website/build/blog/releases/2.4.html 66.4 kB +1 B (0%)
website/build/blog/releases/3.0.html 109 kB +1 B (0%)
website/build/blog/releases/3.1.html 54.8 kB +1 B (0%)
website/build/blog/releases/3.2.html 50.6 kB +1 B (0%)
website/build/blog/releases/3.3.html 57.8 kB +1 B (0%)
website/build/blog/releases/3.4.html 57 kB 0 B
website/build/blog/releases/3.5.html 59.5 kB +1 B (0%)
website/build/blog/releases/3.6.html 76.5 kB 0 B
website/build/blog/releases/3.7.html 52.4 kB +1 B (0%)
website/build/blog/releases/3.8.html 87.7 kB 0 B
website/build/blog/releases/3.9.html 62.4 kB +1 B (0%)
website/build/blog/releases/3.10.html 92.9 kB +1 B (0%)
website/build/blog/tags.html 28.7 kB 0 B
website/build/blog/upgrading-frontend-dependencies-with-confidence-using-visual-regression-testing.html 126 kB +1 B (0%)
website/build/docs.html 50.2 kB +1 B (0%)
website/build/docs/advanced.html 31.6 kB 0 B
website/build/docs/advanced/architecture.html 30.2 kB +4 B (+0.01%)
website/build/docs/advanced/client.html 71.6 kB 0 B
website/build/docs/advanced/plugins.html 55.5 kB +1 B (0%)
website/build/docs/advanced/routing.html 70.8 kB +1 B (0%)
website/build/docs/advanced/ssg.html 75.4 kB +1 B (0%)
website/build/docs/api/docusaurus-config.html 236 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin.html 51.5 kB 0 B
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-html-links.html 36.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-untranslated-text.html 35.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/prefer-docusaurus-heading.html 37.1 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/string-literal-i18n-messages.html 40.7 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/logger.html 39.2 kB +1 B (0%)
website/build/docs/api/misc/create-docusaurus.html 38.4 kB +8 B (+0.02%)
website/build/docs/api/misc/docusaurus-init/index.html 361 B 0 B
website/build/docs/api/plugin-methods.html 61.8 kB 0 B
website/build/docs/api/plugin-methods/extend-infrastructure.html 75.9 kB 0 B
website/build/docs/api/plugin-methods/i18n-lifecycles.html 58.2 kB +1 B (0%)
website/build/docs/api/plugin-methods/lifecycle-apis.html 163 kB +1 B (0%)
website/build/docs/api/plugin-methods/static-methods.html 45.1 kB +1 B (0%)
website/build/docs/api/plugins.html 32.5 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-client-redirects.html 60.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-blog.html 185 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-docs.html 192 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-pages.html 75.1 kB +6 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-css-cascade-layers.html 58 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-debug.html 48.4 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-google-gtag.html 48.2 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-google-tag-manager.html 48.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-ideal-image.html 57.8 kB +4 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-pwa.html 117 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-rsdoctor.html 41.4 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-sitemap.html 91.1 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-svgr.html 60.9 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-vercel-analytics.html 41.2 kB +1 B (0%)
website/build/docs/api/themes.html 30.2 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-classic.html 44 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-live-codeblock.html 37.1 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-mermaid.html 35.9 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-search-algolia.html 33.6 kB 0 B
website/build/docs/api/themes/configuration.html 254 kB 0 B
website/build/docs/blog.html 200 kB 0 B
website/build/docs/browser-support.html 47.2 kB 0 B
website/build/docs/category/getting-started.html 28.5 kB 0 B
website/build/docs/category/guides.html 39 kB 0 B
website/build/docs/category/miscellaneous.html 28.3 kB 0 B
website/build/docs/cli.html 70.5 kB 0 B
website/build/docs/configuration.html 93.6 kB +1 B (0%)
website/build/docs/create-doc.html 62.2 kB +1 B (0%)
website/build/docs/creating-pages.html 57.6 kB +1 B (0%)
website/build/docs/deployment.html 67.5 kB +1 B (0%)
website/build/docs/deployment/github-pages.html 120 kB +1 B (0%)
website/build/docs/deployment/netlify.html 39.3 kB 0 B
website/build/docs/deployment/vercel.html 33.2 kB 0 B
website/build/docs/docs-introduction.html 50.6 kB 0 B
website/build/docs/docs-multi-instance.html 74.7 kB +1 B (0%)
website/build/docs/docusaurus-core.html 227 kB +1 B (0%)
website/build/docs/guides/whats-next.html 33.1 kB 0 B
website/build/docs/i18n/crowdin.html 148 kB +1 B (0%)
website/build/docs/i18n/git.html 81 kB +1 B (0%)
website/build/docs/i18n/introduction.html 49.7 kB +1 B (0%)
website/build/docs/i18n/tutorial.html 170 kB 0 B
website/build/docs/installation.html 72.3 kB 0 B
website/build/docs/introduction/index.html 280 B 0 B
website/build/docs/markdown-features.html 85.4 kB +1 B (0%)
website/build/docs/markdown-features/admonitions.html 118 kB +1 B (0%)
website/build/docs/markdown-features/assets.html 93.4 kB 0 B
website/build/docs/markdown-features/code-blocks.html 222 kB +1 B (0%)
website/build/docs/markdown-features/diagrams.html 61.8 kB 0 B
website/build/docs/markdown-features/head-metadata.html 51.5 kB +1 B (0%)
website/build/docs/markdown-features/links.html 41.4 kB +6 B (+0.01%)
website/build/docs/markdown-features/math-equations.html 92.7 kB 0 B
website/build/docs/markdown-features/plugins.html 96.6 kB +1 B (0%)
website/build/docs/markdown-features/react.html 131 kB +1 B (0%)
website/build/docs/markdown-features/tabs.html 141 kB 0 B
website/build/docs/markdown-features/toc.html 88 kB +1 B (0%)
website/build/docs/migration.html 39.3 kB +1 B (0%)
website/build/docs/migration/v3.html 191 kB +1 B (0%)
website/build/docs/playground.html 32 kB 0 B
website/build/docs/resources/index.html 325 B 0 B
website/build/docs/search.html 125 kB 0 B
website/build/docs/seo.html 88.8 kB 0 B
website/build/docs/sidebar.html 137 kB +1 B (0%)
website/build/docs/sidebar/autogenerated.html 148 kB +1 B (0%)
website/build/docs/sidebar/items.html 176 kB +1 B (0%)
website/build/docs/sidebar/multiple-sidebars.html 62.8 kB +1 B (0%)
website/build/docs/static-assets.html 55.1 kB 0 B
website/build/docs/styling-layout.html 149 kB 0 B
website/build/docs/support/index.html 319 B 0 B
website/build/docs/swizzling.html 113 kB +1 B (0%)
website/build/docs/team/index.html 310 B 0 B
website/build/docs/typescript-support.html 67.2 kB 0 B
website/build/docs/using-plugins.html 107 kB 0 B
website/build/docs/versioning.html 93.2 kB 0 B
website/build/index.html 37.1 kB 0 B

compressed-size-action::DOCUSAURUS_INFRA_FASTER

@github-actions

Copy link
Copy Markdown

Size Change: 0 B

Total Size: 12.1 MB

ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/codeTranslations.json 2 B 0 B
website/.docusaurus/docusaurus.config.mjs 28.8 kB 0 B
website/.docusaurus/globalData.json 42.3 kB 0 B
website/.docusaurus/i18n.json 1.36 kB 0 B
website/.docusaurus/registry.js 184 kB 0 B
website/.docusaurus/routes.js 94.3 kB 0 B
website/.docusaurus/routesChunkNames.json 96.2 kB 0 B
website/.docusaurus/site-metadata.json 2.59 kB 0 B
website/build/assets/css/styles.**********.css 146 kB 0 B
website/build/assets/js/main.**********.js 765 kB 0 B
website/build/assets/js/runtime~main.**********.js 42.9 kB 0 B
website/build/blog.html 79.1 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus.html 67.1 kB +1 B (0%)
website/build/blog/2018/04/30/How-I-Converted-Profilo-To-Docusaurus.html 46.3 kB +1 B (0%)
website/build/blog/2018/09/11/Towards-Docusaurus-2.html 50.7 kB +6 B (+0.01%)
website/build/blog/2018/12/14/Happy-First-Birthday-Slash.html 30.4 kB +1 B (0%)
website/build/blog/2019/12/30/docusaurus-2019-recap.html 41.4 kB +1 B (0%)
website/build/blog/2020/01/07/tribute-to-endi.html 33.9 kB +1 B (0%)
website/build/blog/2021/01/19/docusaurus-2020-recap.html 52.7 kB +1 B (0%)
website/build/blog/2021/03/09/releasing-docusaurus-i18n.html 48.7 kB +1 B (0%)
website/build/blog/2021/05/12/announcing-docusaurus-two-beta.html 49.4 kB +1 B (0%)
website/build/blog/2021/11/21/algolia-docsearch-migration.html 55.8 kB +1 B (0%)
website/build/blog/2022/01/24/docusaurus-2021-recap.html 44.5 kB +1 B (0%)
website/build/blog/2022/08/01/announcing-docusaurus-2.0.html 136 kB +1 B (0%)
website/build/blog/2022/09/01/docusaurus-2.1.html 52 kB +1 B (0%)
website/build/blog/archive.html 24.8 kB 0 B
website/build/blog/authors.html 52.1 kB 0 B
website/build/blog/authors/j-marcey.html 72.2 kB 0 B
website/build/blog/authors/josh-cena.html 48.4 kB 0 B
website/build/blog/authors/lex-111.html 57.4 kB 0 B
website/build/blog/authors/slorber.html 82.9 kB 0 B
website/build/blog/authors/slorber/page/2.html 82.2 kB 0 B
website/build/blog/authors/slorber/page/3.html 85.7 kB 0 B
website/build/blog/authors/slorber/page/4.html 98.5 kB 0 B
website/build/blog/authors/slorber/page/5.html 54.9 kB 0 B
website/build/blog/authors/yangshun.html 68.2 kB 0 B
website/build/blog/authors/zpao.html 48.9 kB 0 B
website/build/blog/page/2.html 78.3 kB 0 B
website/build/blog/page/3.html 82.7 kB 0 B
website/build/blog/page/4.html 87.2 kB 0 B
website/build/blog/page/5.html 74.5 kB 0 B
website/build/blog/page/6.html 42 kB 0 B
website/build/blog/preparing-your-site-for-docusaurus-v3.html 129 kB +1 B (0%)
website/build/blog/releases/2.2.html 52 kB +1 B (0%)
website/build/blog/releases/2.3.html 62.6 kB 0 B
website/build/blog/releases/2.4.html 66.4 kB +1 B (0%)
website/build/blog/releases/3.0.html 109 kB +1 B (0%)
website/build/blog/releases/3.1.html 54.8 kB +1 B (0%)
website/build/blog/releases/3.2.html 50.6 kB +1 B (0%)
website/build/blog/releases/3.3.html 57.8 kB +1 B (0%)
website/build/blog/releases/3.4.html 57 kB 0 B
website/build/blog/releases/3.5.html 59.5 kB +1 B (0%)
website/build/blog/releases/3.6.html 76.5 kB 0 B
website/build/blog/releases/3.7.html 52.4 kB +1 B (0%)
website/build/blog/releases/3.8.html 87.7 kB 0 B
website/build/blog/releases/3.9.html 62.4 kB +1 B (0%)
website/build/blog/releases/3.10.html 92.9 kB +1 B (0%)
website/build/blog/tags.html 28.7 kB 0 B
website/build/blog/upgrading-frontend-dependencies-with-confidence-using-visual-regression-testing.html 126 kB +1 B (0%)
website/build/docs.html 50.2 kB +1 B (0%)
website/build/docs/advanced.html 31.6 kB 0 B
website/build/docs/advanced/architecture.html 30.2 kB +4 B (+0.01%)
website/build/docs/advanced/client.html 71.6 kB 0 B
website/build/docs/advanced/plugins.html 55.5 kB +1 B (0%)
website/build/docs/advanced/routing.html 70.8 kB +1 B (0%)
website/build/docs/advanced/ssg.html 75.4 kB +1 B (0%)
website/build/docs/api/docusaurus-config.html 236 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin.html 51.5 kB 0 B
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-html-links.html 36.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/no-untranslated-text.html 35.8 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/prefer-docusaurus-heading.html 37.1 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/eslint-plugin/string-literal-i18n-messages.html 40.7 kB +1 B (0%)
website/build/docs/api/misc/@docusaurus/logger.html 39.2 kB +1 B (0%)
website/build/docs/api/misc/create-docusaurus.html 38.4 kB +8 B (+0.02%)
website/build/docs/api/misc/docusaurus-init/index.html 361 B 0 B
website/build/docs/api/plugin-methods.html 61.8 kB 0 B
website/build/docs/api/plugin-methods/extend-infrastructure.html 75.9 kB 0 B
website/build/docs/api/plugin-methods/i18n-lifecycles.html 58.2 kB +1 B (0%)
website/build/docs/api/plugin-methods/lifecycle-apis.html 163 kB +1 B (0%)
website/build/docs/api/plugin-methods/static-methods.html 45.1 kB +1 B (0%)
website/build/docs/api/plugins.html 32.5 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-client-redirects.html 60.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-blog.html 185 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-docs.html 192 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-content-pages.html 75.1 kB +6 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-css-cascade-layers.html 58 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-debug.html 48.4 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-google-gtag.html 48.2 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-google-tag-manager.html 48.2 kB +1 B (0%)
website/build/docs/api/plugins/@docusaurus/plugin-ideal-image.html 57.8 kB +4 B (+0.01%)
website/build/docs/api/plugins/@docusaurus/plugin-pwa.html 117 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-rsdoctor.html 41.4 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-sitemap.html 91.1 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-svgr.html 60.9 kB 0 B
website/build/docs/api/plugins/@docusaurus/plugin-vercel-analytics.html 41.2 kB +1 B (0%)
website/build/docs/api/themes.html 30.2 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-classic.html 44 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-live-codeblock.html 37.1 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-mermaid.html 35.9 kB +1 B (0%)
website/build/docs/api/themes/@docusaurus/theme-search-algolia.html 33.6 kB 0 B
website/build/docs/api/themes/configuration.html 254 kB 0 B
website/build/docs/blog.html 200 kB 0 B
website/build/docs/browser-support.html 47.2 kB 0 B
website/build/docs/category/getting-started.html 28.5 kB 0 B
website/build/docs/category/guides.html 39 kB 0 B
website/build/docs/category/miscellaneous.html 28.3 kB 0 B
website/build/docs/cli.html 70.5 kB 0 B
website/build/docs/configuration.html 93.6 kB +1 B (0%)
website/build/docs/create-doc.html 62.2 kB +1 B (0%)
website/build/docs/creating-pages.html 57.6 kB +1 B (0%)
website/build/docs/deployment.html 67.5 kB +1 B (0%)
website/build/docs/deployment/github-pages.html 120 kB +1 B (0%)
website/build/docs/deployment/netlify.html 39.3 kB 0 B
website/build/docs/deployment/vercel.html 33.2 kB 0 B
website/build/docs/docs-introduction.html 50.6 kB 0 B
website/build/docs/docs-multi-instance.html 74.7 kB +1 B (0%)
website/build/docs/docusaurus-core.html 227 kB +1 B (0%)
website/build/docs/guides/whats-next.html 33.1 kB 0 B
website/build/docs/i18n/crowdin.html 148 kB +1 B (0%)
website/build/docs/i18n/git.html 81 kB +1 B (0%)
website/build/docs/i18n/introduction.html 49.7 kB +1 B (0%)
website/build/docs/i18n/tutorial.html 170 kB 0 B
website/build/docs/installation.html 72.3 kB 0 B
website/build/docs/introduction/index.html 280 B 0 B
website/build/docs/markdown-features.html 85.4 kB +1 B (0%)
website/build/docs/markdown-features/admonitions.html 118 kB +1 B (0%)
website/build/docs/markdown-features/assets.html 93.4 kB 0 B
website/build/docs/markdown-features/code-blocks.html 222 kB +1 B (0%)
website/build/docs/markdown-features/diagrams.html 61.8 kB 0 B
website/build/docs/markdown-features/head-metadata.html 51.5 kB +1 B (0%)
website/build/docs/markdown-features/links.html 41.4 kB +6 B (+0.01%)
website/build/docs/markdown-features/math-equations.html 92.7 kB 0 B
website/build/docs/markdown-features/plugins.html 96.6 kB +1 B (0%)
website/build/docs/markdown-features/react.html 131 kB +1 B (0%)
website/build/docs/markdown-features/tabs.html 141 kB 0 B
website/build/docs/markdown-features/toc.html 88 kB +1 B (0%)
website/build/docs/migration.html 39.3 kB +1 B (0%)
website/build/docs/migration/v3.html 191 kB +1 B (0%)
website/build/docs/playground.html 32 kB 0 B
website/build/docs/resources/index.html 325 B 0 B
website/build/docs/search.html 125 kB 0 B
website/build/docs/seo.html 88.8 kB 0 B
website/build/docs/sidebar.html 137 kB +1 B (0%)
website/build/docs/sidebar/autogenerated.html 148 kB +1 B (0%)
website/build/docs/sidebar/items.html 176 kB +1 B (0%)
website/build/docs/sidebar/multiple-sidebars.html 62.8 kB +1 B (0%)
website/build/docs/static-assets.html 55.1 kB 0 B
website/build/docs/styling-layout.html 149 kB 0 B
website/build/docs/support/index.html 319 B 0 B
website/build/docs/swizzling.html 113 kB +1 B (0%)
website/build/docs/team/index.html 310 B 0 B
website/build/docs/typescript-support.html 67.2 kB 0 B
website/build/docs/using-plugins.html 107 kB 0 B
website/build/docs/versioning.html 93.2 kB 0 B
website/build/index.html 37.1 kB 0 B

compressed-size-action::DOCUSAURUS_INFRA_SLOWER

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🟠 81 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🟠 60 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 69 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 68 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🟠 67 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 63 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 67 🟢 100 🟢 100 🟠 86 Report

…insert in the layer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@slorber
slorber force-pushed the claude/css-layers-wrap-fix branch from 454c45a to 9035f92 Compare November 26, 2026 14:49
@slorber slorber changed the title fix(css-cascade-layers): let the next plugins visit the nodes they insert in the layer fix(css-cascade-layers): let the next plugins process the nodes they insert in the layer Nov 26, 2026
@slorber
slorber merged commit dc1fd89 into main Nov 26, 2026
50 of 89 checks passed
@slorber
slorber deleted the claude/css-layers-wrap-fix branch November 26, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Argos Add this label to run UI visual regression tests. See argos.yml GH action. CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant