Re: [csswg-drafts] [css-contain-3] Nesting Context (side effect / enhancement) (#7209)

> Maybe this is a job for `@scope` instead? https://drafts.csswg.org/css-cascade-6/#scope-atrule

I'm thinking it more as a reference to the selector(s)

````CSS
.sidebar-left, 
.sidebar-right {
   container-name: sidebar
}

/* 
  Styling if nested inside .sidebar-left or .sidebar-right 
*/
@container sidebar {
  .component { color: tomato; }
}
````



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


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

Received on Thursday, 14 April 2022 16:00:37 UTC