Generate 'Enlarge' image in CSS rather than HTML (Linker)
authorBartosz Dziewoński <matma.rex@gmail.com>
Mon, 18 Aug 2014 12:53:23 +0000 (14:53 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 19 Aug 2014 23:14:02 +0000 (23:14 +0000)
commit4f056b4e15d34c8cbcab8032f62e3aea3de793d8
tree52159747fc8fd0524ea7c5976f555ffd94e0d877
parent27c8c9443c857f286fde6ae79acd1157f305c516
Generate 'Enlarge' image in CSS rather than HTML (Linker)

There is an ungodly number of requests for magnify-clip.png, embedding
it in CSS is probably good for performance.

It also makes it a lot easier to change the icon, or provide a vector
version (SVG or icon font).

We need to be careful to keep new CSS compatible with old HTML (HTML
is cached for up to 30 days in WMF environment), but luckily in this
case this requires just one CSS rule. Follow-up to remove it: I7a920105.

Bug: 69673
Change-Id: I849a2222fdf708573e54fa0658dbef4d9f2f665f
includes/Linker.php
skins/common/commonContent.css
skins/common/images/magnify-clip-ltr.png [new file with mode: 0644]
skins/common/oldshared.css
tests/parser/parserTests.txt