Closed Bug 1997338 Opened 7 months ago Closed 6 days ago

CSS attr() cyclic reference detection

Categories

(Core :: CSS Parsing and Computation, enhancement)

enhancement
Points:
5

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.

Points: --- → 5
Whiteboard: css-attr

Bookmarking this comment by David. As well these.

Assignee: nobody → sukil

Specifically:

  1. 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.

  2. 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.

  3. CSS-wide keywords aren't meaningful to attr() itself but can pass
    through directly or via the fallback. Added a test covering this.

Status: NEW → RESOLVED
Closed: 6 days ago
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.

Attachment

General

Created:
Updated:
Size: