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 15672 - Term "ancestor box" is ambiguous in definition of containing block (Issue 142)
Summary: Term "ancestor box" is ambiguous in definition of containing block (Issue 142)
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-01-22 19:59 UTC by Anton P
Modified: 2012-12-04 00:52 UTC (History)
0 users

See Also:


Attachments

Description Anton P 2012-01-22 19:59:18 UTC
Issue 142: http://wiki.csswg.org/spec/css2.1#issue-142

Reported by Boris Zbarsky

10.1 (Definition of "containing block") uses the term "ancestor box", but it is unclear whether this is used with regard to the formatting structure or the document tree.

Two of the three occurrences of this term (which only appears in 10.1) seem to be replaceable by "ancestor element".  The third, that in list item 2:
  # 2. For other elements, if the element's position is 'relative'
  #    or 'static', the containing block is formed by the content
  #    edge of the nearest block container ancestor box.
is unclear; as he outlines in his second proposal, Bert is unhappy with "block container element", I think because the defined term is "block container box".


Issue 142: http://wiki.csswg.org/spec/css2.1#issue-142

URL
    http://lists.w3.org/Archives/Public/www-style/2009Sep/0126.html #4
Summary
    clarify terms like "ancestor box", whether referring to formatting structure or document tree. Spec contains only three instances of ancestor box. They are all in section 10.1.
Resolution
    Agreed this is ambiguous.
Proposal
    first version [http://lists.w3.org/Archives/Public/www-style/2010Aug/0436.html];
    second version with support for run-in [http://lists.w3.org/Archives/Public/www-style/2010Oct/0042.html]
Follow-up 1
    There is probably an error [http://lists.w3.org/Archives/Public/www-style/2010Oct/0044.html] in the resolution of issue 120 [http://wiki.csswg.org/spec/css2.1#issue-120]. If so, the proposal needs changing.
Follow-up 2
    Boris Zbarsky asks [http://lists.w3.org/Archives/Public/www-style/2010Aug/0443.html] that the containing block of an element inside a table, in the absence of a table element, be created from the height of the row and the width of the column, even if one or both of those are implied rather than actual elements. If we accept that change, the proposal needs changing.
    This issue should be treated separately; it is filed as Bug 15671.
Comment 1 Anton P 2012-01-22 20:03:32 UTC
I'm not sure the block container box-vs-element is a concern; the spec freely uses "block containers" in various places where it should rightly be referring to elements.  (Fixing "box" vs "element" is a whole separate challenge throughout the spec.)
Comment 2 Anton P 2012-01-22 20:05:19 UTC
Actually, there is a fourth occurrence of "ancestor box", as highlighted in http://lists.w3.org/Archives/Public/www-style/2010Oct/0822.html