css-validator icon indicating copy to clipboard operation
css-validator copied to clipboard

Nested Style Rule Parse Error

Open CresentCity opened this issue 1 year ago • 1 comments

The CSS Validator is treating a nested style rule as a parse error. Below is the link to the W3C CSS Nesting Module:

  https://www.w3.org/TR/css-nesting-1/

Here is the style rule from the CSS Nesting Module that the CSS Validator rejected:

.foo { color: red;

.bar { color: blue; } }

CresentCity avatar Oct 19 '24 04:10 CresentCity

I'm seeing the same. Would be great if this could work.

rgant avatar Mar 03 '25 20:03 rgant

Additionally the Nesting & selector is also producing a parse error.

Same issue as https://github.com/validator/validator/issues/1634

Mardeg avatar Jul 23 '25 13:07 Mardeg