-
Notifications
You must be signed in to change notification settings - Fork 746
Closed
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-nesting-1Current WorkCurrent Work
Description
https://drafts.csswg.org/css-nesting/
Example 4
However, starting the nested selector with an identifier (a type selector, in other words) is invalid:
Does this only apply to the first selector in a list or to each?
invalid :
div {
color: red;
input {
margin: 1em;
}
}
valid/invalid? :
div {
color: red;
:is(input), textarea {
margin: 1em;
}
& input, textarea {
margin: 1em;
}
}
From a parser perspective only the first in the list is important. But from an author perspective this is less obvious.
If you remove :is(input)
then you need to modify textarea
to make it valid again.
I have no preference here, only need to know what to implement
Metadata
Metadata
Assignees
Labels
Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.Used when the issue is more of a question than a problem, and it's been answered.css-nesting-1Current WorkCurrent Work