|
|
|
|
|
by Latty
202 days ago
|
|
`attr()` is being updated to basically do that, the modern spec lets you specify a datatype and access any attribute (with some exceptions, you can't get URL types for security reasons), then use it generally. E.g: aspect-ratio: attr(width px) / attr(height px); |
|