Bug 237956
Summary: | Implement extended CSS attr function arguments | ||
---|---|---|---|
Product: | WebKit | Reporter: | Matt Foulks <mfoulks1> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Enhancement | CC: | koivisto, mfoulks1, simon.fraser |
Priority: | P2 | ||
Version: | WebKit Local Build | ||
Hardware: | Mac (Intel) | ||
OS: | macOS 12 |
Matt Foulks
Implement the updated attr function arguments to allow typecasting, and fallback values as described here:
MDN Web Docs: https://developer.mozilla.org/en-US/docs/Web/CSS/attr()#examples
W3C Spec: https://drafts.csswg.org/css-values-5/Overview.bs#attr-notation
Example Usage:
width: attr(some-attribute %, 100%);
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Sam Sneddon [:gsnedders]
*** This bug has been marked as a duplicate of bug 26609 ***