Closed
Bug 1997338
Opened 7 months ago
Closed 6 days ago
CSS attr() cyclic reference detection
Categories
(Core :: CSS Parsing and Computation, enhancement)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
153 Branch
| Tracking | Status | |
|---|---|---|
| firefox153 | --- | fixed |
People
(Reporter: dshin, Assigned: sukil)
References
(Blocks 1 open bug)
Details
(Whiteboard: css-attr, [wptsync upstream])
Attachments
(1 file)
Cycle detection exists for custom properties - we need to extend it for attr(). This likely involves tracking their names as well as types.
| Assignee | ||
Comment 1•3 months ago
•
|
||
| Assignee | ||
Updated•2 months ago
|
Assignee: nobody → sukil
| Assignee | ||
Comment 2•7 days ago
|
||
Specifically:
-
Fix a failing test in attr-cycle.html. Attr-values should only
resolve references when prefaced by type() syntax. Else the
attr-value is taken as is. -
Cycle detection currently can't distinguish --data-foo (custom
property) from data-foo (attribute), which can flag a false cycle
in rare cases. Added a test to attr-cycle.html. -
CSS-wide keywords aren't meaningful to attr() itself but can pass
through directly or via the fallback. Added a test covering this.
Pushed by sukil@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/d3f83bb38dc4
https://hg.mozilla.org/integration/autoland/rev/93f005409f29
Clean up attr() cycle leftover from Bug 2009001. r=emilio,firefox-style-system-reviewers
Comment 4•6 days ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 6 days ago
status-firefox153:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/60205 for changes under testing/web-platform/tests
Whiteboard: css-attr → css-attr, [wptsync upstream]
You need to log in
before you can comment on or make changes to this bug.
Description
•