User:The Rooster/Sandpit/6

From The Urban Dead Wiki
< User:The Rooster‎ | Sandpit
Revision as of 03:17, 30 July 2009 by The Rooster (talk | contribs) (An experiment regarding fonts)
Jump to navigationJump to search

An interesting test.

If you are set to 13px font size in both IE and FF (the defaults of both), then you can test this.

  • The top box has a font-size 11.7px, or exactly 90% of the 13px default
  • The middle box has a font-size 90%, which means you browser should do the math then display at 11.7px to match the top box.
    • If you're using IE, they'll be bang on.
    • If you're using FF, you'll see they don't match.
  • The bottom box has a font-size 11px, this shouldn't come up in the above calculations.
    • If you're using IE, you'll notice the box is smaller than the others, like it should be.
    • If you're using FF, you'll see it matches the middle box, which is supposed to be 11.7px, not 11.

It appears FF has done some naughty math and truncated the font size when we gave it 90% to deal with. Odd considering it's fine with 11.7px (and this matches the IE box for size). Evidently somebody forgot to cast something as a float and went for integer instead.

Player Information
GlossaryTechnical InformationSuggestionsGroupsRecruitmentGuides
ResourcesDiscussion AreasUrban Dead LexiconsBuilding Information CenterMaps
Player Information
GlossaryTechnical InformationSuggestionsGroupsRecruitmentGuides
ResourcesDiscussion AreasUrban Dead LexiconsBuilding Information CenterMaps
Player Information
GlossaryTechnical InformationSuggestionsGroupsRecruitmentGuides
ResourcesDiscussion AreasUrban Dead LexiconsBuilding Information CenterMaps