MediaWiki talk:Common.js/Archive 13
Appearance
Internet Explorer bug fix
- Discussing this diff and mediazilla:12157
I'm pretty sure that code was supposed to fix this IE6 horizontal scroll bug. The code was added on 19 January 2005 by User:Tom-, he has been asked about this on his talk page a year ago but there is no answer. The way I see it, there are 3 choices:
- propose another solution (imho inlikely)
- add browser detection (combine with 2 cases below?)
- simply remove the code
∴ AlexSm 17:30, 30 November 2007 (UTC)
- I'm going to find out what it was supposed to fix in the first place, because I see no difference with the code disabled... yet. — Edokter • Talk • 18:23, 30 November 2007 (UTC)
- Right, nasty bug... In any case, I've put in a more robust client check, so it should not impact non-IE clients at all. — Edokter • Talk • 23:33, 30 November 2007 (UTC)
- It looks like the
document.compatMode == "CSS1Compat"
part depends on <!DOCTYPE declaration in the beginning of HTML page, and can be safely removed (as long as devs keep this declaration). Also, did you check that IE7 is affected by the bug as well? And can we please combine 3 separate checks for IE into just one? ∴ AlexSm 23:51, 30 November 2007 (UTC)- Browsing the net indicates this is a problem affecting all IE versions. I have been tinkering with the idea of restructuring common.js, but it would invlove some heavy editing; I'd have to do full inventory of all functions first and then prepare a proposal here. All in good time. — Edokter • Talk • 00:31, 1 December 2007 (UTC)
- It looks like the
- Right, nasty bug... In any case, I've put in a more robust client check, so it should not impact non-IE clients at all. — Edokter • Talk • 23:33, 30 November 2007 (UTC)
More problems with SVG image rendering
(If this is wrong place to ask this question, please point me to the correct place.)
Here is a demonstration of a problem with SVG files converted to PNG by the server:
-
This is a test SVG file I uploaded
-
This is what the image looks like correctly rendered on the same computer I used to create the imageThis is what the image looks like correctly rendered on the same computer I used to create the image
-
This is how the server software renders the image for a client that does not support SVG
The SVG file was orginally generated by MS Visio, but I have then edited the SVG source code to try to fix the problems. There seem to be three problems:
- "font-size" measured in em seems to be being interpreted as being measured in points
- "letter-spacing" seems to be ignored
- if "fill" is omitted it seems to default to "black" instead of "none".
Can these problems be fixed? (And will other clients have problems rendering Visio's SVG?)--Dr Greg 18:30, 30 November 2007 (UTC)
- This doesn't seem to be related to JavaScript at all (you can always check that by disabling JavaScript in your browser), so I'd say the correct place is either Wikipedia:Village pump (technical) or mediazilla: ∴ AlexSm 23:51, 30 November 2007 (UTC)