Open Bug 1448251 Opened 6 years ago Updated 4 months ago

Implement CSS attr(<attr-name> color)

Categories

(Core :: CSS Parsing and Computation, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: sebo, Unassigned)

References

(Blocks 1 open bug, )

Details

(Keywords: dev-doc-needed)

The CSS Values and Units Module Level 5 extends the attr() function to optionally specify a type or unit, which specifies how the attribute value should be parsed.

This bug is meant to implement the 'color' type.

Sebastian
Summary: Implement CSS attr(<attr-name>, color, <attr-fallback>) → Implement CSS attr(<attr-name> color, <attr-fallback>)
Priority: -- → P3

Tests

background: attr(data-test color, green);
http://w3c-test.org/css/css-values/attr-color-invalid-cast.html

background: attr(data-test color);
http://w3c-test.org/css/css-values/attr-color-valid.html

Severity: normal → S3
Summary: Implement CSS attr(<attr-name> color, <attr-fallback>) → Implement CSS attr(<attr-name> color)
You need to log in before you can comment on or make changes to this bug.