Re: [csswg-drafts] [css-conditional-4] Feature detection for descriptors (#2463)

This is much needed. Use case:

We can use `ascent-override`, `descent-override`, `line-gap-override` and `size-adjust` in `@font-face` blocks to craft a fallback for a custom font. Or at least `size-adjust` (for width) and `ascent-overrode` for height. Safari supports `size-adjust` but none of the others. Which makes the fallback worse than if it supported nothing. So I need to test for `ascent-override` support and the only robust solution is to use JavaScript like

```js
if ('ascentOverride' in new FontFace(1,1)) {...}
```

-- 
GitHub Notification of comment by stoyan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2463#issuecomment-2455257327 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 4 November 2024 17:08:59 UTC