Re: [csswg-drafts] Proposal: Custom CSS Functions & Mixins (#9350)

This is close to [Container style queries](https://developer.mozilla.org/en-US/docs/Web/CSS/@container#container_style_queries)

You can do this right now:
```css
@container style(--my-special: "card"){
    .name {
        color: red;
    }
}
```

But it's missing something atm, you can't select the container itself with something like `:container` or similar.
If we were able to select the container itself, you would basically be able to do mixins.

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


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

Received on Thursday, 8 February 2024 21:22:11 UTC