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

[CSS21] Auto height of block with horizontal scrollbar

From: Řyvind Stenhaug <oyvinds@opera.com>
Date: Thu, 26 Aug 2010 18:35:01 +0200
To: www-style@w3.org
Message-ID: <op.vh10cnf2ru61ud@oyvinds-desktop>
Sections 10.6.6 and 10.6.7 indicate that the used height of an element is  
independent of whether said element has a horizontal scrollbar. However,  
the browsers I tried (Firefox, IE, Opera and Safari) seem to interoperably  
implement something different, adding the height of the scrollbar. (At  
least the rendering of the following TC is consistent, though Safari  
reports width=84 and height=100 for getComputedStyle while Firefox and  
Opera report width=100 and height=116)

<!doctype html>
<title>auto height and scrollbar</title>
<style>
body > div {
width: 100px;
overflow: scroll;
background: blue;
}
div > div {
height: 100px;
}
</style>
<div><div></div></div>

-- 
Řyvind Stenhaug
Core Norway, Opera Software ASA
Received on Thursday, 26 August 2010 16:33:38 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:30 GMT