[css-conditional-3] Make conditionText readonly
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
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
Comment 1•2 years ago
|
||
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.
Comment 2•2 years ago
|
||
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:
- 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.)
Updated•2 years ago
|
Comment 3•2 years ago
•
|
||
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 | ||
Updated•2 years ago
|
Assignee | ||
Comment 4•2 years ago
|
||
Depends on D143192
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
Comment 7•2 years ago
|
||
Backed out for causing failures at test_interfaces.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/341746177149043a5e0a8f31d2632071b42abf02
Failure log:
https://treeherder.mozilla.org/logviewer?job_id=373815640&repo=autoland&lineNumber=7618
https://treeherder.mozilla.org/logviewer?job_id=373819459&repo=autoland&lineNumber=2929
Upstream PR was closed without merging
Assignee | ||
Updated•2 years ago
|
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
Comment 10•2 years ago
|
||
Backed out for causing failures at idlharness.html.
Backout link: https://hg.mozilla.org/integration/autoland/rev/ed124d06d67623a6227a41ecffd8533733755976
Failure log: https://treeherder.mozilla.org/logviewer?job_id=373840721&repo=autoland&lineNumber=5588
Upstream PR was closed without merging
Assignee | ||
Updated•2 years ago
|
Comment 12•2 years ago
|
||
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
Comment 13•2 years ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Description
•