Re: [csswg-drafts] [css-conditional] [css-contain] "container width" and "container height" units (#5888)

As you mentioned, this won't work since the first declaration will be dropped at parse time as long as the 'cw' unit is supported at all:

```css
p {
  padding: 1em;
  padding: 10cw; /* ignored if no width-query is possible */
}
```

If you resolve against 0 or the viewport dimensions, could one use calc with the existing min()/max() functions, or would that bee too hard to do predictably because you cannot predict if the fallback will be narrower or wider than a working container?
 


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


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

Received on Tuesday, 8 June 2021 07:37:37 UTC