Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-2063

generated css file includes selectors with {}

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta-2
    • 2.0.0-core
    • Skinning
    • None

    Description

      If a selector has skinning properties only, like af|foo {-tr-some-property: true}, then this gets placed into the css file like
      af|foo {}.
      And if it is compact mode, it will get into the css file like:
      . {} It won't have a compressed value, like .x10, because it is considered empty and the skinning framework does not give a compressed value to empty keys.

      If you have a css file with a lot of selectors that have only skin-properties, then your generated css file could look like:
      ., ., ., ., ., ., ., ., ., {}


      The fix is in CSSGenerationUtils.java do not output selectors with an empty property string.

      Attachments

        1. bug-13003991.patch
          2 kB
          Anand V Nath

        Activity

          People

            jeanne.waldman@oracle.com Jeanne Waldman
            jeanne.waldman@oracle.com Jeanne Waldman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: