.img-16-9 { aspect-ratio: 16/9; }
*:where([style*="text-decoration: underline"]) {
text-underline-offset: 4px; /* Set your desired offset */
}
edit: aspect-ratio
used to work at one point
.img-16-9 { aspect-ratio: 16/9; }
*:where([style*="text-decoration: underline"]) {
text-underline-offset: 4px; /* Set your desired offset */
}
edit: aspect-ratio
used to work at one point
Hey Jon,
Thanks for reaching out!
I suspect that the issue is not a bug but rather a limitation of the current CSS linting rules. However, I would like to formally submit this as a feature request to update the linting tool to recognize newer CSS properties, such as aspect-ratio
and text-underline-offset
. These properties are part of the modern CSS specification and are widely supported by most modern browsers.
Thank you for considering this enhancement to improve the tool’s compatibility with current CSS standards.
Thanks @marc_a. These aren’t really new, text-underline-offset
is like 2019/2020 and aspect-ratio
is 2021. 95% of browsers support both of those
Hey Jon,
I have already communicated your concerns to our development team and hope they will be able to implement the necessary changes soon.
Cheers!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.