Bug 237956 - Implement extended CSS attr function arguments
Summary: Implement extended CSS attr function arguments
Status: RESOLVED DUPLICATE of bug 26609
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Local Build
Hardware: Mac (Intel) macOS 12
: P2 Enhancement
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-16 08:11 PDT by Matt Foulks
Modified: 2022-03-16 10:37 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Foulks 2022-03-16 08:11:44 PDT
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%);
Comment 1 Sam Sneddon [:gsnedders] 2022-03-16 10:37:05 PDT

*** This bug has been marked as a duplicate of bug 26609 ***