- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Wed, 23 Dec 2020 18:06:28 +0000
- To: public-css-archive@w3.org
> > Syntactically speaking, the suggested idea means tha > > > > 1. property declarations may appear directly within a media query, but only if they are nested within a style rule. > > 2. within a media query, property declarations must come before any rule declarations. > > #1 is true, and intended, but I don't think #2 would follow. The closing brace of a media query or a rule within a rule tells the parser that it can start looking for property declarations (or ampersands or @ signs) again. Note that I extracted the second point from your statement: > If the first non-white-space character after the opening brace of the nested MQ (or after a closing brace of a nested rule within that MQ) is not an ampersand or @ sign, then it is the beginning of a property for a declaration. Whether or not to allow property definitions anywhere within the \@media-rule needs to be discussed. Sebastian -- GitHub Notification of comment by SebastianZ Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5805#issuecomment-750413285 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 23 December 2020 18:07:56 UTC