3 ms·
The @media application of this seems useful, but yeah arbitrary parents seems not a must-have.
by akdor1154 4y ago
The @media application of this seems useful, but yeah arbitrary parents seems not a must-have.
- krajzeg 4y agoApparently, those already work differently than other selectors in the proposals (example 7): .foo { display: grid; @media (width => 30em) { grid-auto-flow: column; } } I would expect "@nest @media (width => 30em) & {" for consistency with how it works everywhere else, but apparently @media is already special anyway in the "@nest" proposal. I agree that this syntax could be convenient, though I'm actually a fan of having all the "@media" changes in one place, which is what the current syntax forces.