or
https://bugs.webkit.org/show_bug.cgi?id=304555
Ahmad -- thanks for you work here! However, I was testing this out with a local build and noticed that a named container still fails! E.g. see this example below:
<div> <template shadowrootmode="open"> <style> :host { display: block; width: 300px; container: --foo / inline-size; } </style> <slot></slot> </template> <div> <template shadowrootmode="open"> <style> div { width: 100px; height: 100px; background-color: red; } @container --foo (width > 0) { div { background-color: green; } } </style> <div></div> </template> </div> </div>
(In reply to Anthony Frehner from comment #8)
Ahmad -- thanks for you work here! However, I was testing this out with a local build and noticed that a named container still fails! E.g. see this example below: <div> <template shadowrootmode="open"> <style> :host { display: block; width: 300px; container: --foo / inline-size; } </style> <slot></slot> </template> <div> <template shadowrootmode="open"> <style> div { width: 100px; height: 100px; background-color: red; } @container --foo (width > 0) { div { background-color: green; } } </style> <div></div> </template> </div> </div>
Is it something you are going to tackle or is it up for grab? Happy to look into it.
(In reply to Ahmad Saleem from comment #9)
(In reply to Anthony Frehner from comment #8) Ahmad -- thanks for you work here! However, I was testing this out with a local build and noticed that a named container still fails! E.g. see this example below: <div> <template shadowrootmode="open"> <style> :host { display: block; width: 300px; container: --foo / inline-size; } </style> <slot></slot> </template> <div> <template shadowrootmode="open"> <style> div { width: 100px; height: 100px; background-color: red; } @container --foo (width > 0) { div { background-color: green; } } </style> <div></div> </template> </div> </div> (In reply to Anthony Frehner from comment #8) Ahmad -- thanks for you work here! However, I was testing this out with a local build and noticed that a named container still fails! E.g. see this example below: <div> <template shadowrootmode="open"> <style> :host { display: block; width: 300px; container: --foo / inline-size; } </style> <slot></slot> </template> <div> <template shadowrootmode="open"> <style> div { width: 100px; height: 100px; background-color: red; } @container --foo (width > 0) { div { background-color: green; } } </style> <div></div> </template> </div> </div> Is it something you are going to tackle or is it up for grab? Happy to look into it.
I'm on it:
325656 and 331279 are both filed, and both have associated PRs up for them. :)