Re: [csswg-drafts] [css-values-4] Allow an inline way to do "first value that's supported" (#5055)

> I really needed it many times trying to get something like `first-supported(100lvh, 100vh)`

This is not as useful for static things like that, as you can just do:

```css
:root {
 --viewport-height: 100vh;

 @supports(height: 100lvh) {
  --viewport-height: 100lvh;
 }
}
```

Then use `var(--viewport-height)` throughout your CSS.

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


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

Received on Friday, 10 May 2024 14:43:45 UTC