Re: [csswg-drafts] Proposing new CSS primitives to enable great web experiences on foldable & dual-screen devices (#4736)

This stuff does not seem at all easy to use. I can't imagine that adoption by web developers would ever be all that high.

Is there any plan for something simple, like a css function that adjusts a size or coordinate to snap to a natural boundary position? Something like:

```
nav {
    --smallest-acceptable-width: 300px;
    --ideal-width: 40vw;
    --largest-acceptable-width: 60vw;
    width: natural(var(--smallest-acceptable-width), var(--ideal-width), var(--largest-acceptable-width));
}
```

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


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

Received on Saturday, 8 August 2020 03:49:06 UTC