W3C home > Mailing lists > Public > public-html@w3.org > October 2008

Don't make <h1><h1> nest

From: Simon Pieters <simonp@opera.com>
Date: Mon, 13 Oct 2008 10:27:45 +0200
To: public-html <public-html@w3.org>
Message-ID: <op.uiye4gl1idj3kv@zcorpandell.linkoping.osa>

http://html5.org/tools/web-apps-tracker?from=925&to=926

In order to get the layout right, what is actually needed is a unit that  
acts like 'em' but ignores ancestor h1-h6 elements when calculating the  
computed style of font-size. Using 'rem' or similar isn't good enough  
because pages can set the font-size on root to something that isn't used  
for the actual text on the page, or some pages have a sidebar in a smaller  
font, etc.

So we've decided to do what webkit does. (Any element in between whose end  
tag isn't implied by <h1> makes them nest.)

-- 
Simon Pieters
Opera Software
Received on Monday, 13 October 2008 08:28:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:23 GMT