MDL-33825 css_optimiser: Fixed bug where !important was being lost for advanced background styles
This commit is contained in:
+5
-1
@@ -3845,7 +3845,11 @@ class css_style_background extends css_style {
|
||||
} else if ($attachment === self::NULL_VALUE && in_array($bit, $attachments)) {
|
||||
$attachment = $bit;
|
||||
} else if ($bit !== '') {
|
||||
$return[] = css_style_background_advanced::init($bit);
|
||||
$advanced = css_style_background_advanced::init($bit);
|
||||
if ($important) {
|
||||
$advanced->set_important();
|
||||
}
|
||||
$return[] = $advanced;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user