Implement CSS attr(<attr-name>, <attr-fallback>)
Categories
(Core :: CSS Parsing and Computation, enhancement, P3)
Tracking
()
People
(Reporter: sebo, Assigned: canadahonk)
References
(Blocks 2 open bugs, )
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
Updated•7 years ago
|
Comment 1•6 years ago
|
||
Tests
background: attr(data-test color);
http://w3c-test.org/css/css-values/attr-color-valid.html
width: attr(data-test length);
http://w3c-test.org/css/css-values/attr-length-valid-zero-nofallback.html
width: attr(data-test length);
http://w3c-test.org/css/css-values/attr-length-valid.html
width: attr(data-test px);
http://w3c-test.org/css/css-values/attr-px-valid.html
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Implemented support for a fallback in CSS attr funcs
(attr(<attr-name>, <attr-fallback>)
)
Spec: https://drafts.csswg.org/css-values-5/#attr-notation
WIP. Todo:
- Parse fallback into variable
- Use fallback in C++
- Add WPT tests
Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 5•1 year ago
|
||
bugherder |
Assignee | ||
Comment 7•1 year ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: New CSS feature supported
[Affects Firefox for Android]: Yes
[Suggested wording]: The CSS attr()
function now supports a fallback parameter (eg attr(foobar, "Default value")
). First browser to implement, and ship.
[Links (documentation, blog post, etc)]: None yet.
Comment 8•1 year ago
|
||
Added to 119 beta release notes (https://www.mozilla.org/en-US/firefox/119.0beta/releasenotes/) as well as the Draft release notes for 119
Updated•1 year ago
|
Comment 9•1 year ago
|
||
Description
•