W3C home > Mailing lists > Public > www-style@w3.org > February 2010

RE: Scientific notation in numbers

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Fri, 12 Feb 2010 20:52:40 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E10CD8057@TK5EX14MBXC111.redmond.corp.microsoft.com>
I have just found out that IE does in fact already support scientific notation for CSS lengths (see simple testcase below). The CSS hack factor is thus already out there and has been for quite some time as this works from quirks mode up (with IE8 no longer supporting the notation for percentage values).

We currently have a bug filed for this. 

(And we thus know understand why MSIE has *really* been giving Hakon headaches all these years....)

<div id=ref">
	<p style="font-weight:bold">Reference:</p>
	<div style="width:500px; background-color:blue">
	<div style="width:75%; background-color:yellow">
		<div style="font-size:100pt">A<span style="font-size:0.5em">B</span></div>
<div id="test">	
	<p style="font-weight:bold">Sci-notation version:</p>
	<div style="width:5e2px; background-color:blue">
		<div style="width:75%; background-color:yellow"> <!-- 7.5e1% works in IE7 and earlier -->
			<div style="font-size:1e2pt">A<span style="font-size:5e-1em">B</span></div>
Received on Friday, 12 February 2010 20:54:11 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:32 UTC