Minify of CSS Bug with @-moz-document

89 views
Skip to first unread message

Samuel Schmid

unread,
Sep 23, 2013, 4:47:20 AM9/23/13
to terrific...@googlegroups.com
Following LESS producing an error in productive css:

@media print {

    @-moz-document url-prefix() {

      .mod-garagefinder {

          #map-canvas {

            margin-top: -200px;

            height: 1000px !important;

            width: 1250px !important;

            position: relative;

            left: -500px;

            -moz-transform: scale(0.5);

          }

      }

}


It produces following output:

@media print {@-moz-document url-prefix() {.mod-garagefinder #map-canvas {margin-top: -200px;height: 1000px !important;width: 1250px !important;position: relative;left: -500px;-moz-transform: scale(0.5);}}

The last } is missing.


Leo Zurbriggen

unread,
Sep 24, 2013, 2:34:09 AM9/24/13
to terrific...@googlegroups.com
You have 4 open brackets and 3 closing ones. If I add a closing bracket after the block, I get the following result (which seems correct to me):

@media print {
  @-moz-document url-prefix() {
    .mod-garagefinder #map-canvas {
      margin-top: -200px;
      height: 1000px !important;
      width: 1250px !important;
      position: relative;
      left: -500px;
      -moz-transform: scale(0.5);
    }
  }
}

Even if this was a bug, this would rather be related to lessphp than Terrific itself. 
Have I misunderstood something?

Remo Brunschwiler

unread,
Sep 24, 2013, 3:45:08 AM9/24/13
to terrific...@googlegroups.com

Thx Leo for the immediate bugfix! It's like you said – if it was a bug, it would be related to lessphp which can be updated separately by changing the version in the composer.json.

Reply all
Reply to author
Forward
0 new messages