gss / parser

Constraint Cascading Style Sheets compiler
MIT License
48 stars 6 forks source link

Gaps + Explicit gaps on both sides #39

Open Inviz opened 9 years ago

Inviz commented 9 years ago

When using explicit variables gaps, the parser greedily captures some VFL stuff between them when using regular - gap.

.block{
  @v |-^[inner-gap-top]-(.avatar)-(.html)-(.source)-^[inner-gap-bottom]-| gap(v-gap);
}

yields some ccss like:

 .avatar[bottom] + (.html)~(.source)-^[inner-gap-bottom] == ::this[bottom]
paulyoung commented 9 years ago

We should add a spec for this.

paulyoung commented 9 years ago

I wonder if ^inner-gap-top works vs ^[inner-gap-top].