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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.3
    • 2.3
    • Themes
    • MOODLE_23_STABLE
    • MOODLE_23_STABLE
    • wip-MDL-33825-m23
    • 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.

      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);
      }

            samhemelryk Sam Hemelryk
            samhemelryk Sam Hemelryk
            Dan Poltawski Dan Poltawski
            Aparup Banerjee Aparup Banerjee
            Rossiani Wijaya Rossiani Wijaya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.