leafo / scssphp

SCSS compiler written in PHP
MIT License
1.34k stars 214 forks source link

Issue/leafo/493 #653

Closed Cerdic closed 5 years ago

Cerdic commented 5 years ago

Fix https://github.com/leafo/scssphp/issues/493: assign lines in @support (or others) directives have to be wrapped in a block before compilation

There is a small change on the outpout of

@foo {
  rule {
    a: b; }

  a: b; }

which was

@foo {
  a: b; 
  rule {
    a: b; } }

and is now

@foo {
  rule {
    a: b; }

  a: b; }

which looks like not being worst: at least the order is kept, even if the result is however not valid in css