Skip to content

FF149 @container style() allows but ignores !important#43466

Open
hamishwillee wants to merge 1 commit intomdn:mainfrom
hamishwillee:ff149_atcontainer_style_query_important
Open

FF149 @container style() allows but ignores !important#43466
hamishwillee wants to merge 1 commit intomdn:mainfrom
hamishwillee:ff149_atcontainer_style_query_important

Conversation

@hamishwillee
Copy link
Collaborator

This updated does two things.

  1. Updates the "Using container size and style queries" doc to:
    • Update legacy note that only style queries with custom properties are supported. I believe all the types are - certainly that is what the @container docs indicate and the BCD seems to show.
    • Link the Container style queries intro to the more detailed section on @container doc.
  2. Adds a note in @container docs that !important is allowed in style queries but ignored. This apparently is not clear in the spec but is in a WPT test that is passed by all browsers. This came up in https://bugzilla.mozilla.org/show_bug.cgi?id=2014095 and I think is worthy of a mention.

Related docs work can be tracked in in #43216

@hamishwillee hamishwillee requested a review from a team as a code owner March 17, 2026 03:28
@hamishwillee hamishwillee requested review from dipikabh and estelle and removed request for a team March 17, 2026 03:28
@github-actions github-actions bot added Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed labels Mar 17, 2026
@github-actions
Copy link
Contributor

Preview URLs (2 pages)

Flaws (12)

Note! 1 document with no flaws that don't need to be listed. 🎉

Found an unexpected or unresolvable flaw? Please report it here.

URL: /en-US/docs/Web/CSS/Reference/At-rules/@container
Title: @container
Flaw count: 12

  • broken_links:
    • Link /en-US/docs/Web/CSS/Reference/Values/block-contents doesn't resolve
    • Link /en-US/docs/Web/CSS/Reference/Values/size-feature doesn't resolve
    • Link /en-US/docs/Web/CSS/Reference/Values/scroll-state-feature doesn't resolve
    • Link /en-US/docs/Web/CSS/Reference/Values/function-token doesn't resolve
    • Link /en-US/docs/Web/CSS/Reference/Values/any-value doesn't resolve
    • and 7 more flaws omitted

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

Labels

Content:CSS Cascading Style Sheets docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant