W3C home > Mailing lists > Public > www-style@w3.org > April 2012

[css3-flexbox] component properties of flex

From: Alex Mogilevsky <alexmog@microsoft.com>
Date: Wed, 25 Apr 2012 17:38:17 +0000
To: www-style list <www-style@w3.org>
Message-ID: <2C86A15F63CD734EB1D846A0BA4E0FC80E79A9E7@CH1PRD0310MB381.namprd03.prod.outlook.com>
We have an issue to resolve for dealing with flex values in DOM: https://www.w3.org/Bugs/Public/show_bug.cgi?id=16145

I think the most reasonable way to do it is to actually have component properties:



or something like that.

They will of course be automatically available in DOM, no special-case API needed.

We didn't get component properties upfront because we had flex() function and we have convinced ourselves that it is OK to have to set all three values together and not have them cascade separately. I don't think we have convincing arguments though that they must not cascade separately. These properties will usually together, just like border width and border style typically do, but I can think of plenty of use cases where flexibility components are assigned to categories of items, controlled by pseudo classes or animated separately, without any loss of conceptual integrity and consistent to how CSS works everywhere else.

I propose adding the component properties, as listed above or with even more intuitive naming (and we are very good in naming things!).

Received on Wednesday, 25 April 2012 17:39:35 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:15 UTC