Closed Bug 1762474 Opened 2 years ago Closed 2 years ago

[css-conditional-3] Make conditionText readonly

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: mozilla-apprentice, Assigned: emilio)

References

Details

Attachments

(2 files)

A resolution was made for csswg-drafts/#6819.

[css-conditional-3] Setting .conditionText interop is terrible

  • RESOLVED: Make conditionText readonly

Discussion.

As noted in https://github.com/w3c/csswg-drafts/issues/6819#issue-1055502312, Firefox supports setting conditionText (as the spec used to require) for @media rules.

Now, per the above-quoted resolution, conditionText is supposed to be read-only, so we should not support setting it.

Attached file testcase 1

Here's a testcase, from a simplification of a WPT test that fantasai wrote. (Note: I think her WPT test was expecting conditionText to be writable and hence is no longer valid.)

For this attached test, the STR are:

  1. View the test directly in your browser.

EXPECTED RESULTS: lime div
ACTUAL RESULTS: red div

(If the test renders as red, then that indicates that it successfully modified the condition of the media query, even though it wasn't supposed to be able to.)

Summary: [css-conditional-3] Setting .conditionText interop is terrible → [css-conditional-3] Make conditionText readonly

A fix here will probably need to include a new WPT test; I'm not immediately finding any WPT test-failure annotations (in .ini files in searchfox) that mention conditionText, at least.

Assignee: nobody → emilio
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6a588f6d08f7
Make CSSConditionRule.conditionText readonly. r=layout-reviewers,firefox-style-system-reviewers,boris
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/33558 for changes under testing/web-platform/tests
Upstream PR was closed without merging
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/6c5ac0c99219
Make CSSConditionRule.conditionText readonly. r=layout-reviewers,firefox-style-system-reviewers,boris
Upstream PR was closed without merging
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/99a576b86767
Make CSSConditionRule.conditionText readonly. r=layout-reviewers,firefox-style-system-reviewers,boris
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: