You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<script>
let name = "world";
</script><div><h1title="test">Hello {name}!</h1></div><style>
div {container: resp/inline-size;}
div {/* works fine */&h1[title]{color: red;}}
@container resp (width <300px){h1[title]{color: blue!important;}/* doesn't work fine *//* div { & h1[title] { color: red; } } */}
</style>
CSS nesting doesn't properly work yet as a whole - #8587. Your first example only appears to work in this case - the h1[title] is not properly scoped. The CSS in question compiles to div.svelte-18sf3ua{& h1[title] { color: red; }}, which will also incorrectly match h1[title] elements in child components that are inside this component's <div>.
Describe the bug
The nesting selector functionality appears to be non-operational when utilized within a container query.
Reproduction
repl: https://svelte.dev/repl/c467cfb38bc64e94b8fc28a7a1b41c12?version=4.2.9
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: