gss / parser

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

Strengths are evaluated irrespective of conditional statements #18

Closed paulyoung closed 10 years ago

paulyoung commented 10 years ago

The following CCSS causes the error Uncaught (c.RequiredFailure) A required constraint cannot be satisfied.

width: == 240 !require;

@if ::window[width] > [breakpoint] {
  width: == 480 !require;
}
paulyoung commented 10 years ago

D4 pointed out that this is as intended and an @else block should be used in this case.