[CSS21] Issue 120 (boxes) - comments on Working Draft

This comments relate to Issue 120[1] (the great box clean-up).

Issue 1: 5.12.1 (The :first-line pseudo-element) currently says:

   # The :first-line pseudo-element applies special styles to the
   # contents of the first formatted line of a paragraph

s/paragraph/block container/

although note that the following already exists near the bottom of the 

   # The :first-line pseudo-element can only be attached to a block
   # container element.

Issue 2: 5.12.2 (The :first-letter pseudo-element) currently says:

   # The :first-letter pseudo-element must select the first letter of
   # the first line of a block

s/block/block container/

although note that the following already exists near the bottom of the 

   # The :first-letter pseudo-element applies to block container
   # elements.

Issue 3: 9.2.1 (Block-level elements and block boxes) currently says:

   # Block-level elements are those elements of the source document that
   # are formatted visually as blocks (e.g., paragraphs). The following
   # values of the 'display' property make an element block-level:
   # 'block', 'list-item', and 'run-in' (part of the time; see run-in
   # boxes), and 'table'.

If we're going to mention 'table' here then we should also mention 

Issue 4: (Anonymous inline boxes) currently says:

   # Such anonymous inline boxes inherit inheritable properties from
   # their block parent box.

s/block/block container/
since not all block containers are blocks, and only a block container 
can establish an inline formatting context in CSS21.

Issue 5: 10.8.1 ('line-height')

   # On a block container element whose content is composed of inline-
   # level elements, 'line-height' specifies the minimal height of line
   # boxes within the element.

Change this to

   | On a block container element which establishes an inline formatting
   | context, [...]

Issue 6: 11.1.1 (Overflow) currently says:

   # 11.1.1 Overflow: the 'overflow' property
   # 'overflow'
   #     Value:       visible | hidden | scroll | auto | inherit
   #     Initial:     visible
   #     Applies to:  non-replaced block-level elements, table cells,
   #                  and inline-block elements

Can we replace the list of possibilities in the "Applies to" section 
with "block containers", as per other parts of the spec?  This is in 
line with the subsequent paragraph which begins, "This property 
specifies whether content of a block container element is clipped when 
it overflows the element's box."

Issue 7: 17.4 (Tables in the visual formatting model) currently says:

   # In both cases, the table generates a principal block box called the
   #  table wrapper box that contains the table box itself and any
   # caption boxes (in document order).

s/block/block container/
since the table wrapper box may be inline-level.

   # The table box is a block-level box that contains the table's
   # internal table boxes. The caption boxes are block-level boxes that
   # retain their own content, padding, margin, and border areas, and
   # are rendered as normal block boxes inside the table wrapper box.

s/as normal block boxes//

   # The table wrapper box is a 'block' box if the table is block-level,
   # and an 'inline-block' box if the table is inline-level. The table
   # wrapper box establishes a block formatting context.


   # The computed values of properties 'position', 'float', 'margin-*',
   # 'top', 'right', 'bottom', and 'left' on the table box are used on
   # the table wrapper box instead of the table box. The table box uses
   # the initial values for those properties.

s/on the table box/on the table/
s/are used on/affect/

[1] http://wiki.csswg.org/spec/css2.1#issue-120
[1] http://www.w3.org/Style/css2-updates/css2/visuren.html#block-boxes
[2] http://www.w3.org/Style/css2-updates/css2/visufx.html#overflow

Anton Prowse

Received on Friday, 7 January 2011 20:57:44 UTC