<b class="foo">
<i>Blue text</i>
</b>CSS nesting and specificity / notebook
CSS nesting and specificity
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
:is(#a, b) {
& i {
color: blue;
}
}
.foo i {
color: red;
}