<html>
<head>
<style>
p {
color: red;
};
span {
color: blue;
}
</style>
</head>
<body>
<p> This is a paragraph </p>
<span> This is a span </span>
</body>
</html>
Given the snippet above the color of the span is not changed to blue.
I would like to understand what is the reason of discarding the following declaration block?
I understand that those are not statements and there is no need of putting semicolon right after each declaration block but this kind of behavior is hidden and produces unexpected behavior.
Thanks in advance.