Skip to content

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

Merged
hamishwillee merged 2 commits intomdn:mainfrom
hamishwillee:ff149_atcontainer_style_query_important
Mar 20, 2026
Merged

FF149 @container style() allows but ignores !important#43466
hamishwillee merged 2 commits 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

github-actions bot commented Mar 17, 2026

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

(comment last updated: 2026-03-20 00:21:28)

Copy link
Contributor

@dipikabh dipikabh left a comment

Choose a reason for hiding this comment

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

The updates makes sense, thanks!
This was a related relnote: https://github.com/mdn/content/pull/43473/changes

Co-authored-by: Dipika Bhattacharya <dipika@foss-community.org>
Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
@hamishwillee hamishwillee merged commit 6f498c4 into mdn:main Mar 20, 2026
8 checks passed
@hamishwillee hamishwillee deleted the ff149_atcontainer_style_query_important branch March 20, 2026 00:27
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.

3 participants