https://bugzilla.wikimedia.org/show_bug.cgi?id=71003

            Bug ID: 71003
           Summary: CSSMin doesn't need to generate double rules for IE<8
                    when embedding SVG files
           Product: MediaWiki
           Version: 1.24-git
          Hardware: All
                OS: All
            Status: NEW
          Keywords: easy
          Severity: minor
          Priority: Unprioritized
         Component: ResourceLoader
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
            Blocks: 57777
       Web browser: ---
   Mobile Platform: ---

CSSMin doesn't need to generate double rules for IE<8 when embedding SVG files.
IE<8 will not load SVG images anyway, so this just wastes space.

This if() in CSSMin.php probably should have a test added for SVG MIME type.

  if ( $embedData && $ruleWithEmbedded !== $ruleWithRemapped ) {
    return "$ruleWithEmbedded;$ruleWithRemapped!ie";
  } else {
    return $ruleWithRemapped;
  }

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to