Open
Bug 1854104
Opened 2 years ago
Updated 1 month ago
Consider CSS attr() fallback
Categories
(DevTools :: Inspector: Rules, enhancement, P3)
DevTools
Inspector: Rules
Tracking
(Not tracked)
NEW
People
(Reporter: canadahonk, Unassigned)
References
(Blocks 1 open bug)
Details
Support for CSS attr()'s fallback (eg attr(foo, "fallback")) is being implemented and shipped in Bug 1448248. It should display okay in DevTools currently but it could possibly be improved (needs investigation). No other browsers implement or ship it at this time.
Comment 1•2 years ago
|
||
We could do what is done for var() and display the value not being used in a "disabled"-grey color
CanadaHonk, can we detect that in javascript that the fallback is used?
Flags: needinfo?(oj)
| Reporter | ||
Comment 2•2 years ago
|
||
No unfortunately, the spec doesn't add anything to DOM/etc exposing any fallback info afaik. I would be happy to add it but would likely need an upstream spec issue deciding how best to do so.
Flags: needinfo?(oj)
Comment 3•2 years ago
|
||
Well, we can detect it using element.hasAttribute(...) right?
Updated•2 years ago
|
Priority: -- → P3
Updated•1 year ago
|
Component: Inspector → Inspector: Rules
You need to log in
before you can comment on or make changes to this bug.
Description
•