W3C home > Mailing lists > Public > www-style@w3.org > October 2012

[CSSOM View] "Document content width / height" doesn't have normative definition

From: Justice <justice360@gmail.com>
Date: Wed, 31 Oct 2012 21:19:27 +0800
Message-ID: <CAGD6YKWCsiqwtv=SRnMCPHWP3XNR-oxiVwYfTLHw_vX6eVM+VA@mail.gmail.com>
To: www-style@w3.org
The spec defined the term *document content* as "the area on the canvas
that is rendered upon, excluding content on negative axis" but it seemed to
me that it doesn't normatively define its metrics.

In later sections of the spec *scrollWidth* and *scrollHeight* is defined
using the term *document content width / height*, which is quite vague and
not so instructive for the actual calculation of root element's scrollWidth
/ scrollHeight.

Just have a look at scrollHeight of the root element, according my test
results, Firefox and IE regard it as the margin box height excluding
margin-bottm, Chrome regards it as the padding box height and Opera regards
it as the margin box height.

I think we need some normative definitions here to help user agents
conformantly calculate scrollWidth and scrollHeight of the root element.
Received on Wednesday, 31 October 2012 19:04:06 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT