- From: Øyvind Stenhaug <oyvinds@opera.com>
- Date: Thu, 26 Aug 2010 18:35:01 +0200
- To: www-style@w3.org
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 UTC