Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-17227

CSS minifier improperly aggregates @imports within comments

    Details

    • Branch Version/s:
      6.0.x
    • Backported to Branch:
      Committed

      Description

      CSS aggregation from MinifierFilter.aggregateCss(String, String) causes this
      .test1

      {text-decoration:none;}

      /* @import url(forms.css); */
      .test2

      {text-decoration:none;}

      When loaded through the CSS minifier, the output became:

      .test1

      {text-decoration:none;}

      fieldset

      {border:1px solid #BFBFBF;padding:8px;}

      legend

      {font-weight:bold;padding:0 6px;}

      input

      {backgroundFFF;}

      input[type="text"],input[type="password"],input[type="file"],input[type="submit"],input[type="button"],input[type="reset"],select,textarea,.textarea

      {background-image:url(../images/forms/input_shadow.png);background-repeat:no-repeat;border:1px solid;border-colorBFBFBF #DEDEDE #DEDEDE #BFBFBF;font:1em Arial,Helvetica,Verdana,sans-serif;padding:5px 1px;}

      select

      {padding:1px;}

      input.focus,textarea.focus,.ie6 input.focus,.ie6 textarea.focus

      {backgroundFFC none;border:1px solid #FC0;}

      */ .test2

      {text-decoration:none;}

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              minhchau.dang Minhchau Dang
              Reporter:
              caleb.fong Caleb Fong (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 29 weeks, 1 day ago

                  Packages

                  Version Package
                  5.2.X EE
                  6.0.12 EE
                  6.1.0 CE RC1