Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make `&` perform semantically-aware selector unification #490

Open
nex3 opened this Issue · 1 comment

2 participants

@nex3
Owner

For example,

div:before { &[id] { content: "#" attr(id); } }

should become

div[id]:before { content: "#" attr(id); }

since the unification should know that :before must come after other selectors.

Also,

*, a { .foo { color: red; } }

should become

.foo, a.foo { color: red; }

since the unification would be able to remove the universal selector.

@rafegoldberg

:+1: this would be quite useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.