Re: [csswg-drafts] [css-nesting-1] CSSOM for nested media query rules (#7850)

> Specifically, where does the “color: green;” go?

It'll go on a `.style` in CSSMediaRule (not yet defined by the spec).

> You want to parse @media differently depending on the context it's in? I'm not sure if that's ideal either.

Yeah, that's the intent of the spec - top-level @media parses its body as a top-level stylesheet, while nested @media parses its body as a nested style rule's body.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7850#issuecomment-1275250869 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 11 October 2022 20:40:16 UTC