Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-21246

CSS minification removes spaces around operator in calc expressions

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 14.10.15
    • None
    • None
    • Unknown

    Description

      A CSS SSX containing the following:

      {{p { width: calc(50% + 1px) }}}

      is minified to:

      p{width:calc(50%+1px)}

      Notice the missing spaces around the + operator. This is a syntax error in CSS, the declaration including the calc expression gets entirely discarded by the CSS parser as a consequence.

      This also means that ?minify=false does not behave the same as without.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rjakse Raphaƫl Jakse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: