Is there an interest into dragging this into the limelight again? (I feel I raised this on here before but can’t find where)
The spec written by @tabatkins http://tabatkins.github.io/specs/css-nesting/
I thought it would be worth bringing up again as there is interest in implementing this into CSSNext:
I think the biggest change would be around formatting, example 5 uses:
div {{
.keyword {color: red;}
&:hover {background-color: rgb(200, 255, 255);}
section > & {border: 2px solid gray;}
}}
Which nowhere else is made clear that multiple nested selections can be used within the block, so I would advocate changing examples to this style formatting:
table.colortable {
{
td {
text-align:center;
{
&.c { text-transform:uppercase }
&:first-child, &:first-child + td { border:1px solid black }
}
}
th {
text-align:center;
background:black;
color:white;
}
}
}
I understand the reasoning behind the nesting selectors however would a different character be possible?
What that might be I’m not sure as the following are all likely out: []<>()*@+"':
backticks perhaps or slashes?
a {
\
span {
color: red;
}
\
}