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

[CSS 2.1] [Section 10.3.3] Questions on width of block-level, non-replaced elements in normal flow

From: Gérard Talbot <www-style@gtalbot.org>
Date: Tue, 24 Aug 2010 11:31:36 -0700
Message-ID: <3a62f52b05201e073f3032d538a774fe.squirrel@cp3.shieldhost.com>
To: "www-style list" <www-style@w3.org>
Hello,

I am not very familiar with section 10.3.3 and its equation and rules on
handling over-constrained values/situations.

"
The following constraints must hold among the used values of the other
properties:

    'margin-left' + 'border-left-width' + 'padding-left' + 'width' +
'padding-right' + 'border-right-width' + 'margin-right' = width of
containing block
"

coming from section 10.3.3:
http://www.w3.org/TR/CSS21/visudet.html#blockwidth

1-
Is this testcase correct?

http://www.gtalbot.org/BrowserBugsSection/css21testsuite/block-non-replaced-width-008.html

I mean here
a) there should be no red
b) the calculations given in the source code are correct

That test has its own importance because, right now, there is diverging
implementations among browsers.


2-
The spec says:
"
If there is exactly one value specified as 'auto', its used value follows
from the equality.
"

What if the one single specified value as 'auto' is width and complying
with the equation would imply that the used width is negative... How could
this be?

E.g.:
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/block-non-replaced-width-0xx.html

I must be missing something here...

regards, Gérard
-- 
CSS 2.1 Test suite beta 3 (August 15th 2010)
http://test.csswg.org/suites/css2.1/20100815/html4/toc.html

Contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/

Web authors' contributions to CSS 2.1 test suite
http://www.gtalbot.org/BrowserBugsSection/css21testsuite/web-authors-contributions-css21-testsuite.html
Received on Tuesday, 24 August 2010 18:32:12 GMT

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