CSS quiz: The color of the h2 is…

(with native CSS, no preprocessor like Sass).

```
<div>
<h2>A heading</h2>
</div>
```

```
div, #cssisawesome {
h2 {
color: red;
}
}

div h2 {
color: blue;
}
```

red
33.3%
blue
64.9%
black (initial)
1.8%
Poll ended at .
@matuzo I cheated by testing it (in Firefox, anyway), so I won't vote. Then I tried a few experiments. I certainly couldn't explain the behavior if I was asked!
CSS nesting and specificity - CSS: Cascading Style Sheets | MDN

The specificity of the & nesting selector is calculated using the largest specificity in the associated selector list. This is identical to how specificity is calculated when using the :is() function.

MDN Web Docs