Bug 237956

Summary: Implement extended CSS attr function arguments
Product: WebKit Reporter: Matt Foulks <mfoulks1>
Component: CSSAssignee: 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   

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 ***