Re: [csswg-drafts] [css-contain] [css-sizing] [sizing-values] Allow sizing values like @container burgermenu (width < min-width) (#9978)

@Loirooriol i created a codepen for ilustrate best the feature:
https://codepen.io/codermapuche/pen/bGZPmWP

In this pen, from the line 50 is the relevant code placed with comments about what iam doing currently, and what i want todo for the same results.

Basically:
NOW: **@container (width < 760px)** 

```
Where 760px = 
     4[a_tag] * 
       (100px[a_tag.width]   + 
        20px[a_tag.padding]  + 
        20px[a_tag.margin])  +
     4[li_tag] * 
       (20px[li_tag.padding] + 
        20px[li_tag.margin]) + 
     1[ul_tag] * 
       (20px[ul_tag.padding] + 
        20px[ul_tag.margin])
```
PROPOSAL: **@container (width < min-width)**

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


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

Received on Saturday, 24 February 2024 14:41:44 UTC