- From: Sam Atkins via GitHub <sysbot+gh@w3.org>
- Date: Fri, 14 Mar 2025 20:09:35 +0000
- To: public-css-archive@w3.org
If I understand it correctly, you would be able to do this using [`if()`](https://drafts.csswg.org/css-values-5/#funcdef-if):
```css
@font-face {
font-family: 'The Font';
src: if(
media(resolution >= 2x) : url(the-font-hinted.woff2);
else : url(the-font-unhinted.woff2)
);
}
```
--
GitHub Notification of comment by AtkinsSJ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11940#issuecomment-2725650049 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 14 March 2025 20:09:35 UTC