Skip to content

feat(css): add support for @container scroll-state at-rule and associated queries#9273

Open
denbezrukov wants to merge 4 commits intomainfrom
dbezrukov/fix-scss
Open

feat(css): add support for @container scroll-state at-rule and associated queries#9273
denbezrukov wants to merge 4 commits intomainfrom
dbezrukov/fix-scss

Conversation

@denbezrukov
Copy link
Contributor

Summary

Added support for the CSS @container scroll-state(...) at-rule and associated queries according to the [CSS Conditional 5 specification](https://drafts.csswg.org/css-conditional-5/#scroll-state-container).

I haven't added changeset since the changes shouldn't change the formatter or lint rules.

Examples of syntax:

@container scroll-state(scrolled: bottom) { }
@container scroll-state(stuck) { }
@container scroll-state(not (stuck)) { }
@container scroll-state((stuck) and (scrolled: bottom)) { }
@container scroll-state((stuck) or (snapped: x)) { }
@container main-layout scroll-state(not ((stuck) and (scrolled: bottom))) { }

Test Plan

cargo test -p biome_css_formatter
cargo test -p biome_css_parser

@changeset-bot
Copy link

changeset-bot bot commented Feb 28, 2026

🦋 Changeset detected

Latest commit: 6e3154b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added A-Parser Area: parser A-Formatter Area: formatter A-Tooling Area: internal tools L-CSS Language: CSS L-Grit Language: GritQL labels Feb 28, 2026
@github-actions
Copy link
Contributor

Parser conformance results on

js/262

Test result main count This PR count Difference
Total 52934 52934 0
Passed 51714 51714 0
Failed 1178 1178 0
Panics 42 42 0
Coverage 97.70% 97.70% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 38 38 0
Passed 37 37 0
Failed 1 1 0
Panics 0 0 0
Coverage 97.37% 97.37% 0.00%

markdown/commonmark

Test result main count This PR count Difference
Total 652 652 0
Passed 652 652 0
Failed 0 0 0
Panics 0 0 0
Coverage 100.00% 100.00% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 5464 5464 0
Passed 1915 1915 0
Failed 3549 3549 0
Panics 0 0 0
Coverage 35.05% 35.05% 0.00%

ts/babel

Test result main count This PR count Difference
Total 635 635 0
Passed 567 567 0
Failed 68 68 0
Panics 0 0 0
Coverage 89.29% 89.29% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 18872 18872 0
Passed 13012 13012 0
Failed 5859 5859 0
Panics 1 1 0
Coverage 68.95% 68.95% 0.00%

@ematipico
Copy link
Member

Does this PR fix #9253?

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 28, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7e52ddd and 6e3154b.

📒 Files selected for processing (1)
  • .changeset/fix-container-scroll-state-css.md

Walkthrough

This PR adds comprehensive support for CSS @container scroll-state(...) queries. Changes include new parser logic to handle scroll-state query syntax with not, and, and or operators; corresponding formatter implementations across the css/any and css/auxiliary modules; grammar updates defining the new container scroll-state syntax structures; wiring of formatters through generated code; and test coverage for both parsing and formatting paths.

Possibly related PRs

Suggested reviewers

  • ematipico
  • dyc3
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarises the main change: adding support for the @container scroll-state at-rule, which is the primary objective of this changeset.
Description check ✅ Passed The description is directly related to the changeset, detailing the new @container scroll-state support, providing examples, and referencing the CSS Conditional 5 specification.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dbezrukov/fix-scss

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss (1)

1-9: Good test coverage, but consider adding a named container case.

The PR description mentions support for @container main-layout scroll-state(not ((stuck) and (scrolled: bottom))). Consider adding a test case with a named container to ensure that path is exercised.

The Stylelint empty block warnings are expected for parser test fixtures.

💡 Optional: Add named container test case
 `@container` scroll-state((stuck) or (scrolled: bottom)) { }
+
+@container main-layout scroll-state(stuck) { }
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss`
around lines 1 - 9, Add a test line that exercises a named container variant of
the scroll-state at-rule, e.g. a rule using a named container identifier like
"main-layout" together with a nested negation expression such as not ((stuck)
and (scrolled: bottom)); update the test file containing the existing `@container`
rules (look for the lines with scroll-state(...) variants) by adding a similar
empty block that uses the named container to ensure the parser covers the path
mentioned in the PR description.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@xtask/codegen/css.ungram`:
- Around line 976-980: The grammar change adding
CssContainerScrollStateQueryInParens (with name: CssIdentifier and
AnyCssContainerScrollStateQuery in parens) requires regenerating parser
artifacts; run the codegen step (just gen-grammar css) locally before updating
the PR and include the generated outputs so the build/tests reflect the new
.ungram change—ensure the generated code is committed alongside the .ungram edit
so container/mod.rs’s runtime validation remains in sync.

---

Nitpick comments:
In
`@crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss`:
- Around line 1-9: Add a test line that exercises a named container variant of
the scroll-state at-rule, e.g. a rule using a named container identifier like
"main-layout" together with a nested negation expression such as not ((stuck)
and (scrolled: bottom)); update the test file containing the existing `@container`
rules (look for the lines with scroll-state(...) variants) by adding a similar
empty block that uses the named container to ensure the parser covers the path
mentioned in the PR description.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 412a08d and 6661fd1.

⛔ Files ignored due to path filters (13)
  • crates/biome_css_factory/src/generated/node_factory.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_factory/src/generated/syntax_factory.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_formatter/tests/specs/css/scss/at-rule/container-scroll-state.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/at_rule/at_rule_container/at_rule_container_and_query_error.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/at_rule/at_rule_container/at_rule_container_error.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/at_rule/at_rule_container/at_rule_container_or_query_error.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/scss/at-rule/container-scroll-state.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_container.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_syntax/src/generated/kind.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_syntax/src/generated/macros.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_syntax/src/generated/nodes.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_syntax/src/generated/nodes_mut.rs is excluded by !**/generated/**, !**/generated/** and included by **
📒 Files selected for processing (21)
  • crates/biome_css_formatter/src/css/any/container_query_in_parens.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_and_combinable_query.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_in_parens.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_or_combinable_query.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_query.rs
  • crates/biome_css_formatter/src/css/any/mod.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_and_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_in_parens.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_not_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_or_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_query_in_parens.rs
  • crates/biome_css_formatter/src/css/auxiliary/mod.rs
  • crates/biome_css_formatter/src/generated.rs
  • crates/biome_css_formatter/tests/specs/css/scss/at-rule/container-scroll-state.scss
  • crates/biome_css_parser/src/syntax/at_rule/container/error.rs
  • crates/biome_css_parser/src/syntax/at_rule/container/mod.rs
  • crates/biome_css_parser/tests/css_test_suite/error/scss/at-rule/container-scroll-state.scss
  • crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss
  • crates/biome_grit_patterns/src/grit_target_language/css_target_language/generated_mappings.rs
  • xtask/codegen/css.ungram
  • xtask/codegen/src/css_kinds_src.rs

Comment on lines +976 to +980
CssContainerScrollStateQueryInParens =
name: CssIdentifier
'('
query: AnyCssContainerScrollStateQuery
')'
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

rg -n "scroll.?state" --type rust crates/biome_css_parser/src/ -i

Repository: biomejs/biome

Length of output: 7793


🏁 Script executed:

# Look for where CssContainerScrollStateQueryInParens is used/validated
rg -n "CssContainerScrollStateQueryInParens" crates/biome_css_parser/src/

Repository: biomejs/biome

Length of output: 39


🏁 Script executed:

# Check the parser rule for container scroll-state queries
rg -n "parse.*scroll.*state\|scroll.*state.*parse" crates/biome_css_parser/src/ -i

Repository: biomejs/biome

Length of output: 39


🏁 Script executed:

# Look at the grammar generation to understand the scope
fd "*.ungram" --type f

Repository: biomejs/biome

Length of output: 344


🏁 Script executed:

fd --glob "*.ungram" --type f

Repository: biomejs/biome

Length of output: 389


🏁 Script executed:

# Look at the specific validation on line 208
sed -n '207,210p' crates/biome_css_parser/src/syntax/at_rule/container/mod.rs

Repository: biomejs/biome

Length of output: 208


Run just gen-grammar css before opening the PR.

The .ungram file changes to grammar require code generation. (Also, the name: CssIdentifier design is intentional—the parser validates that only scroll-state is accepted at runtime on line 208 of container/mod.rs, so this is fine.)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@xtask/codegen/css.ungram` around lines 976 - 980, The grammar change adding
CssContainerScrollStateQueryInParens (with name: CssIdentifier and
AnyCssContainerScrollStateQuery in parens) requires regenerating parser
artifacts; run the codegen step (just gen-grammar css) locally before updating
the PR and include the generated outputs so the build/tests reflect the new
.ungram change—ensure the generated code is committed alongside the .ungram edit
so container/mod.rs’s runtime validation remains in sync.

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 28, 2026

Merging this PR will not alter performance

✅ 29 untouched benchmarks
⏩ 187 skipped benchmarks1


Comparing dbezrukov/fix-scss (6e3154b) with main (a2b4494)2

Open in CodSpeed

Footnotes

  1. 187 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (412a08d) during the generation of this report, so a2b4494 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (3)
crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss (1)

1-9: Consider one more OK fixture for named containers with scroll-state(...).

These cases are good; adding one @container <name> scroll-state(...) sample (ideally with snapped: x|y) would lock that parser path too.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss`
around lines 1 - 9, Add an additional OK fixture that exercises the
named-container parsing path by using a named container before the scroll-state
condition; e.g. include a rule with the pattern "@container my-container
scroll-state(snapped: x)" (or "snapped: y") so the parser sees a named
identifier then scroll-state(...); ensure the new case mirrors the style of
existing fixtures (spacing/curly braces) and uses "snapped" as the property to
cover that variant of scroll-state.
crates/biome_css_parser/tests/css_test_suite/error/scss/at-rule/container-scroll-state.scss (1)

1-5: Add one invalid case for wrong function name.

Given the grammar allows an identifier before (...), adding something like @container foo(stuck) { } would guard the runtime scroll-state name validation against regressions.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@crates/biome_css_parser/tests/css_test_suite/error/scss/at-rule/container-scroll-state.scss`
around lines 1 - 5, Add an additional invalid test case that uses a wrong
function/identifier before the parentheses to ensure runtime validation catches
non-scroll-state names; specifically add an `@container` rule like "@container
foo(stuck) { }" alongside the existing `@container` scroll-state(...) cases so the
parser/runtime will reject a non-"scroll-state" identifier.
crates/biome_css_parser/src/syntax/at_rule/container/mod.rs (1)

219-221: Use expect for the mandatory ( in this rule.

Line 220 currently uses p.bump(T!['(']); switching to p.expect(T!['(']) keeps required-token diagnostics consistent with the rest of the parser.

Suggested patch
-    p.bump(T!['(']);
+    p.expect(T!['(']);

Based on learnings: Use p.eat(token) for optional tokens, p.expect(token) for required tokens.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@crates/biome_css_parser/src/syntax/at_rule/container/mod.rs` around lines 219
- 221, Replace the mandatory-token call to p.bump(T!['(']) with
p.expect(T!['(']) so the parser emits the same required-token diagnostics used
elsewhere; in the sequence inside the function that calls
parse_regular_identifier(p) and then parses the container query, ensure you call
p.expect(T!['(']) before calling parse_any_container_scroll_state_query(p) to
enforce the required '(' and produce a consistent diagnostic on failure.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@crates/biome_css_parser/src/syntax/at_rule/container/mod.rs`:
- Around line 219-221: Replace the mandatory-token call to p.bump(T!['(']) with
p.expect(T!['(']) so the parser emits the same required-token diagnostics used
elsewhere; in the sequence inside the function that calls
parse_regular_identifier(p) and then parses the container query, ensure you call
p.expect(T!['(']) before calling parse_any_container_scroll_state_query(p) to
enforce the required '(' and produce a consistent diagnostic on failure.

In
`@crates/biome_css_parser/tests/css_test_suite/error/scss/at-rule/container-scroll-state.scss`:
- Around line 1-5: Add an additional invalid test case that uses a wrong
function/identifier before the parentheses to ensure runtime validation catches
non-scroll-state names; specifically add an `@container` rule like "@container
foo(stuck) { }" alongside the existing `@container` scroll-state(...) cases so the
parser/runtime will reject a non-"scroll-state" identifier.

In
`@crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss`:
- Around line 1-9: Add an additional OK fixture that exercises the
named-container parsing path by using a named container before the scroll-state
condition; e.g. include a rule with the pattern "@container my-container
scroll-state(snapped: x)" (or "snapped: y") so the parser sees a named
identifier then scroll-state(...); ensure the new case mirrors the style of
existing fixtures (spacing/curly braces) and uses "snapped" as the property to
cover that variant of scroll-state.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6661fd1 and 49fd6b1.

⛔ Files ignored due to path filters (13)
  • crates/biome_css_factory/src/generated/node_factory.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_factory/src/generated/syntax_factory.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_formatter/tests/specs/css/scss/at-rule/container-scroll-state.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/at_rule/at_rule_container/at_rule_container_and_query_error.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/at_rule/at_rule_container/at_rule_container_error.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/at_rule/at_rule_container/at_rule_container_or_query_error.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/error/scss/at-rule/container-scroll-state.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/ok/at_rule/at_rule_container.css.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss.snap is excluded by !**/*.snap and included by **
  • crates/biome_css_syntax/src/generated/kind.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_syntax/src/generated/macros.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_syntax/src/generated/nodes.rs is excluded by !**/generated/**, !**/generated/** and included by **
  • crates/biome_css_syntax/src/generated/nodes_mut.rs is excluded by !**/generated/**, !**/generated/** and included by **
📒 Files selected for processing (21)
  • crates/biome_css_formatter/src/css/any/container_query_in_parens.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_and_combinable_query.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_in_parens.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_or_combinable_query.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_query.rs
  • crates/biome_css_formatter/src/css/any/mod.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_and_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_in_parens.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_not_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_or_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_query_in_parens.rs
  • crates/biome_css_formatter/src/css/auxiliary/mod.rs
  • crates/biome_css_formatter/src/generated.rs
  • crates/biome_css_formatter/tests/specs/css/scss/at-rule/container-scroll-state.scss
  • crates/biome_css_parser/src/syntax/at_rule/container/error.rs
  • crates/biome_css_parser/src/syntax/at_rule/container/mod.rs
  • crates/biome_css_parser/tests/css_test_suite/error/scss/at-rule/container-scroll-state.scss
  • crates/biome_css_parser/tests/css_test_suite/ok/scss/at-rule/container-scroll-state.scss
  • crates/biome_grit_patterns/src/grit_target_language/css_target_language/generated_mappings.rs
  • xtask/codegen/css.ungram
  • xtask/codegen/src/css_kinds_src.rs
🚧 Files skipped from review as they are similar to previous changes (10)
  • crates/biome_css_formatter/src/css/auxiliary/mod.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_in_parens.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_or_combinable_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_in_parens.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_query.rs
  • crates/biome_css_formatter/src/css/any/container_scroll_state_and_combinable_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_and_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_not_query.rs
  • crates/biome_css_formatter/src/css/auxiliary/container_scroll_state_query_in_parens.rs
  • crates/biome_grit_patterns/src/grit_target_language/css_target_language/generated_mappings.rs

@denbezrukov
Copy link
Contributor Author

Does this PR fix #9253?

I guess this is a follow-up, because we didn't fully support the new syntax.
After that, I'd like to refactor how we parse general enclose.
And I think we should disable the ‘change to SCSS extension’ error while we don't have SCSS support, because it's confusing.

Copy link
Contributor

@dyc3 dyc3 left a comment

Choose a reason for hiding this comment

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

I think there should be a changeset because your last example produces a parsing error on main, and this PR fixes it.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.changeset/fix-container-scroll-state-scss.md (1)

1-14: Question: should the filename omit "scss"?

The filename includes "scss" but the feature and examples are CSS-based (@container scroll-state). Unless there's a specific SCSS aspect to this fix, consider renaming to fix-container-scroll-state.md for clarity.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.changeset/fix-container-scroll-state-scss.md around lines 1 - 14, The
changeset filename contains "scss" but the fix targets CSS `@container
scroll-state` parsing; rename the changeset file from
".changeset/fix-container-scroll-state-scss.md" to
".changeset/fix-container-scroll-state.md" (or equivalent) so the filename
accurately reflects the CSS feature being fixed and avoid implying a
SCSS-specific change; update any references to the old filename in the
repository (e.g., changelog generation or CI scripts) to point to the new name.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.changeset/fix-container-scroll-state-scss.md:
- Around line 1-14: The changeset filename contains "scss" but the fix targets
CSS `@container scroll-state` parsing; rename the changeset file from
".changeset/fix-container-scroll-state-scss.md" to
".changeset/fix-container-scroll-state.md" (or equivalent) so the filename
accurately reflects the CSS feature being fixed and avoid implying a
SCSS-specific change; update any references to the old filename in the
repository (e.g., changelog generation or CI scripts) to point to the new name.

ℹ️ Review info

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 49fd6b1 and 7e52ddd.

⛔ Files ignored due to path filters (1)
  • crates/biome_css_formatter/tests/specs/css/atrule/container.css.snap is excluded by !**/*.snap and included by **
📒 Files selected for processing (1)
  • .changeset/fix-container-scroll-state-scss.md

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

Labels

A-Formatter Area: formatter A-Parser Area: parser A-Tooling Area: internal tools L-CSS Language: CSS L-Grit Language: GritQL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants