W3C home > Mailing lists > Public > www-style@w3.org > January 2011

[CSS21] Editorial issues with Ch. 16 (Text) - comments on Working Draft

From: Anton Prowse <prowse@moonhenge.net>
Date: Fri, 07 Jan 2011 22:09:11 +0100
Message-ID: <4D2780F7.8030207@moonhenge.net>
To: "www-style@w3.org" <www-style@w3.org>
Issue 1: As a result of the resolution of Issue 194,[1] 16.1 
(Indentation: the 'text-indent' property) now says:

   # 'Text-indent' only affects a line if it is the first formatted line
   # of an element. For example, the first line of an anonymous block
   # box is only affected if it is the first child of its parent element.

The example is incorrect; the anonymous block box may be preceded by an 
empty block-level sibling and yet its first line could still be affected.


Issue 2: 16.2 (Alignment: the 'text-align' property) says:

   # A block of text is a stack of line boxes. In the case of 'left',
   # 'right' and 'center', this property specifies how the inline-level
   # boxes within each line box align with respect to the line box's
   # left and right sides; alignment is not with respect to the
   # viewport. In the case of 'justify', this property specifies that
   # the inline-level boxes are to be made flush with both sides of the
   # block container if possible, by expanding or contracting the
   # contents of inline boxes, else aligned as for the initial value.

This starts off well, talking about alignment with respect to the sides 
of the line box.  But then it suddenly starts talking about alignment 
with respect to the sides of the block container.  The latter is wrong, 
since in the presence of floats the alignment will still apply within 
shortened line boxes.


Issue 3: 16.3.1 (Underlining, overlining, striking, and blinking: the 
'text-decoration' property) says:

   # [...] For block containers that establish an inline formatting
   # context, the decorations are propagated to an anonymous inline
   # element that wraps all the in-flow inline-level children of the
   # block container. For all other elements it is propagated to any
   # in-flow children. Note that text decorations are not propagated to
   # floating and absolutely positioned descendants, nor to the contents
   # of atomic inline-level descendants such as inline blocks and inline
   # tables.

This propagation needs to be recursive through nested block containers, 
right?  This needs stating.


[1] http://wiki.csswg.org/spec/css2.1#issue-194

Cheers,
Anton Prowse
http://dev.moonhenge.net
Received on Friday, 7 January 2011 21:09:43 GMT

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