https://bugzilla.wikimedia.org/show_bug.cgi?id=55482
Web browser: ---
Bug ID: 55482
Summary: CSSMin should embed embeddable images by default
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: ResourceLoader
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
CSSMin requires an explicit /* @embed */ directive to trigger image embedding.
But embedding embeddable images is almost always desirable, and thus the more
sensible behavior would be for image embedding to be opt-out (or, like
minification, not optional at all).
Instead of grepping of @embeds, CSSMin could inspect all url()s in the
stylesheet to see whether they reference a local, embeddable image file. (An
image is embeddable if it is not too large and if CSSMin recognizes its MIME
type.) If the referenced is embeddable, CSSMin should simply embed it.
Are there cases for which this behavior would not be desirable? If so, we can
replace opt-in via /* @embed */ with opt-out via /* @noembed */. But let's
first be sure that we would actually need it.
it has a mime-type is under the size limit and
--
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