Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-33825

!important being lost by the CSS optimiser for advanced background styles.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Themes
    • Labels:
    • Testing Instructions:
      Hide
      1. Run phpunit tests on lib/tests/csslib_test.php
      2. Log in as an admin
      3. Enable css optimiser (experimental settings) and purge your caches.
      4. Browse to a course and turn on editing
      5. Click on the add activity link and check that the header for the dialogue has a gradient.
      Show
      Run phpunit tests on lib/tests/csslib_test.php Log in as an admin Enable css optimiser (experimental settings) and purge your caches. Browse to a course and turn on editing Click on the add activity link and check that the header for the dialogue has a gradient.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull Master Branch:
      wip-MDL-33825-m23

      Description

      The following illustration shows problem clearer than I could describe it:

      .userenrolment {
          background: #CCCCCC!important;
          background: -webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CCCCCC))!important;
          background: -moz-linear-gradient(top,  #FFFFFF,  #CCCCCC)!important;
      }
       
      // Gets optimised to:
      .userenrolment {
        background:#CCC !important;
        background:-webkit-gradient(linear, left top, left bottom, from(#FFFFFF), to(#CCCCCC));
        background:-moz-linear-gradient(top, #FFFFFF, #CCCCCC);
      }

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  25/Jun/12