W3C home > Mailing lists > Public > www-style@w3.org > June 2013

[css3-text] undefined behavior for combination of text-align/text-align-last

From: John Daggett <jdaggett@mozilla.com>
Date: Mon, 17 Jun 2013 04:57:14 -0700 (PDT)
To: www-style list <www-style@w3.org>
Message-ID: <1088124831.22678604.1371470234484.JavaMail.root@mozilla.com>

http://dev.w3.org/csswg/css-text/#text-align

The 'text-align' property in CSS3 Text has a 'start end' property
value defined as:

# Specifies ‘start’ alignment of the first line and any line
# immediately after a forced line break; and ‘end’ alignment of any
# remaining lines not affected by ‘text-align-last’. 

But for the 'text-align-last' property, the default value 'auto' is
defined as:

# If ‘auto’ is specified, content on the affected line is aligned per
# ‘text-align’ unless ‘text-align’ is set to ‘justify’.

But the 'text-align-last' property has neither 'start end' or
'match-parent' values.  So if text-align-last is 'auto' does it behave
like the values of 'start end' and 'match-parent'?

  text-align: start end;
  text-align-last: auto;

What's the last line behavior?  Is it "affected by 'text-align-last'"
in this case?  Note that 'start end' is defined in a way that only
specifies behavior for lines unaffected by 'text-align-last'.

Overall, I think it's really unfortunate to have property definitions
with property values that are conditional upon the value of other 
properties like this.  It's really hard to grok the behavior given
all the combinations.

Regards,

John Daggett
Received on Monday, 17 June 2013 11:57:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:12 UTC