gss / parser

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

constraining many elements to many elements? Fanning / Pairing #3

Closed d4tocchini closed 10 years ago

d4tocchini commented 10 years ago

if we had 3 els with .icon and 3 els with .button

would the following,

.icon[centerX] == .button[centerX]

Produce 3 constraints (pairing) or 9 constraints (fanning)?

Would we need an API for this?

Pairing would produce unpredictable results when the left or right terms are unequal in length...

Things get really fucked with,

.icon[centerX] == .button[centerX] + .title[width]

Maybe we need to validate the selectors?

d4tocchini commented 10 years ago

The parser is now agnostic to constraints with unbalanced selectors.