[Bug 1075461] [NEW] Wrong conversion em -> px for font-size < 10 px

piechan 1075461 at bugs.launchpad.net
Tue Nov 6 08:33:22 UTC 2012


Public bug reported:

When using em for dimensions (height, width, etc.) other than font-size,
the dimensions are not calculated correctly if the font-size is < 10px.

Example:

<!DOCTYPE html>
<html lang="de">
	<head>
		<meta charset="utf-8">
		<title>em | px bug Firefox Ubuntu</title>
		<style type="text/css">
			div	{
				background-color: #EE0000;
				display: block;
				margin-bottom: 10px;			
			}
			div._24px {
				font-size: 24px;
				height: 5em;
				width: 5em;				
			}
			div._12px {
				font-size: 12px;
				height: 10em;
				width: 10em;
			}
			div._10px {
				font-size: 10px;
				height: 12em;
				width: 12em;
			}
			div._8px {
				font-size: 8px;
				height: 15em;
				width: 15em;
			}
			div._6px {
				font-size: 6px;
				height: 20em;
				width: 20em;
			}			
		</style>
	</head>

	<body>
		<div class="_24px">
			 
		</div>
		<div class="_12px">
			 
		</div>
		<div class="_10px">
			 
		</div>
		<div class="_8px">
			 
		</div>
		<div class="_6px">
			 
		</div>	
	</body>
</html>

All the divs should have exactly the same dimensions, which in not the
case in Firefox 10.0.2: div._8px and div._6px are too big, their height
and width is calculated based on a font size of 10px.

Release:  Ubuntu 12.04.1 LTS

** Affects: firefox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/1075461

Title:
  Wrong conversion em -> px for font-size < 10 px

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/firefox/+bug/1075461/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list