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

Re: [css3-flexbox] what's the computed value of "width: flex(...)" in a non-flexbox context?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 9 Jun 2011 14:47:00 -0700
Message-ID: <BANLkTimO0AD+nZUdQFUtb7sutwY3WF3Hc3x+KFUxUVfca0zoWQ@mail.gmail.com>
To: Alex Mogilevsky <alexmog@microsoft.com>
Cc: Daniel Holbert <dholbert@mozilla.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, Jun 9, 2011 at 2:14 PM, Alex Mogilevsky <alexmog@microsoft.com> wrote:
> Is there a precedent for value types like that in other places?
>
> For example, in CSS2.1 percent is not applicable to border-width. Is setting a percent value making the property invalid or is it setting initial value?

Different issue.  If you set a property to a value that's not valid
for it (like setting 'border-width' to a percentage), it makes the
declaration invalid.

We're instead dealing with a value that's valid for the property, but
only meaningful in certain contexts.  This is like setting 'top',
'height', and 'bottom' all together - 'bottom' can only be validly set
if either 'top' or 'height' are auto.
Received on Thursday, 9 June 2011 21:47:47 GMT

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