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>


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 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:38 UTC