This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15894 - Position of top content edge of non-replaced block-level elements is not clearly defined
Summary: Position of top content edge of non-replaced block-level elements is not clea...
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSS Level 2 (show other bugs)
Version: unspecified
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Bert Bos
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-04 19:22 UTC by Anton P
Modified: 2012-12-04 00:54 UTC (History)
0 users

See Also:


Attachments

Description Anton P 2012-02-04 19:22:26 UTC
Reported by Øyvind Stenhaug

9.4.1 (Block formatting contexts) says that block-level boxes in a block formatting context are laid out one after the other, vertically, beginning at the top of a containing block.

But the position of a block-level element's top content edge isn't clearly defined: 8.3.1 fails to explain where a collapsed margin sits in relation to the border edge positions of the elements involved (for example in the case where an element's top margin collapses with the top margin of its first in-flow child).

The old text of 10.6.3 was faulty but it did try to ensure that this gap in the spec was filled for the cases it discussed.  However, that section was then changed as per the resolution of Issue 225 [http://wiki.csswg.org/spec/css2.1#issue-225], which meant that this gap became more exposed.  On the other hand, 10.6.7 never took account of this gap.


Conversation begins: http://lists.w3.org/Archives/Public/www-style/2011Apr/0132.html (first part)

Bug description: http://lists.w3.org/Archives/Public/www-style/2011Apr/0217.html