Closed Bug 2014095 Opened 9 months ago Closed 8 months ago

@container style() feature parsing should allow !important modifier

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
149 Branch
Tracking Status
firefox149 --- fixed

People

(Reporter: jfkthame, Assigned: jfkthame)

References

Details

(Keywords: dev-doc-complete)

Attachments

(1 external file)

It's not really clear to me from the spec at this point, but the WPT testcase at-container-style-parsing.html includes an example with !important that it expects to be accepted:

  test_cq_condition_known('style(--foo: bar !important)');

Currently (with the layout.css.style-queries.enabled pref enabled) our parsing rejects this as invalid.

Assignee: nobody → jfkthame
Status: NEW → ASSIGNED
Pushed by jkew@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/02afa137b8ca https://hg.mozilla.org/integration/autoland/rev/454325963d29 Accept (and ignore) the !important flag when parsing a container style-feature query. r=firefox-style-system-reviewers,emilio
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 149 Branch
Keywords: dev-doc-needed
QA Whiteboard: [qa-triage-done-c150/b149]

FF149 MDN docs work for this can be tracked in https://github.com/mdn/content/issues/43216

All I have done is mentioned in the docs that !important is allowed, but more importantly, ignored. There is no need for a compatibility data entry because the feature is behind a pref still, and compatibility like this doesn't really matter until release. Ditto for release notes (we tend to record really significant additions only in release notes).

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: