https://bugzilla.wikimedia.org/show_bug.cgi?id=34459
Web browser: ---
Bug #: 34459
Summary: Trying to use @font-face in skin CSS fails
Product: MediaWiki
Version: 1.20-svn
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: Resource Loader
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
We encourage skin authors to use syntax like:
'styles' => array(
'skinname/screen.css' => array( 'media' => 'screen' ),
),
Presumably because it encourages strict media typing (which is kinda nice). The
problem is that @font-face constructions in screen.css are not extracted,
resulting in them being wrapped in @media along with all the other rules.
Unfortunately, having @font-face inside @media doesn't work. AFAICT no warning
is given and it took me several minutes to deduce the error, extract the tag
into a separate file, and ask for the new file not to be @media wrapped.
Not sure what the best resolution here is but the status quo seems to be
improvable on.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- 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