-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-conditional] Nested at-rules within at-rule() #11117
Comments
In #6966 (comment) I suggested to allow authors to either test for an at-rule’s name or an actual full at-rule. That would allow the following: @supports at-rule(@page { @top-left { ... }}) {
…
} … which I believe fixes this issue. |
For example, I have not read all related discussions so I do not know the motivations for using |
|
Exact, I had I already read your article before and forget about Single argument blocks/functions is probably easier for authors, even if it means feeding a whole rule to define a nesting context. |
For what it's worth, allowing to test a full at-rule's syntax is also what I suggested earlier and mentioned again in the discussion in #2463. The main counter-argument back then was that it's verbose. Though like @bramus I believe it makes sense to allow both testing for the full rule and offer a simpler way. Allowing to test for the full syntax ensures that every feature of at-rules can be tested for. In addition to that we can provide short forms to test them. Sebastian |
Some at-rules are only valid within a certain other at-rule, e.g. margin rules within @page, or
@swash
(etc) within @font-feature-values.So, how do these evaluate?
It seems unwise to just ignore context, since a given
@foo
may be specified to exist in more than one context, with different meanings (and possibly different descriptors being valid).This was discussed during #2463, but I don't see a conclusion.
The text was updated successfully, but these errors were encountered: