span {
border: red 2px solid;
}
div {
border: red 2px solid;
}Selector list / notebook
Selector list
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
span,
div {
border: red 2px solid;
}:is(span, div) {
border: red 2px solid;
}#main,
.content,
article,
h1 + p {
font-size: 1.1em;
}h1 {
font-family: sans-serif;
}
h2:invalid-pseudo {
font-family: sans-serif;
}
h3 {
font-family: sans-serif;
}h1,
h2:invalid-pseudo,
h3 {
font-family: sans-serif;
}h1 {
font-family: sans-serif;
}
h2:maybe-unsupported {
font-family: sans-serif;
}
h3 {
font-family: sans-serif;
}:is(h1, h2:maybe-unsupported, h3) {
font-family: sans-serif;
}h2:has(+ p, + ul.red) {
font-style: italic;
}