I am quite familiar with Flex 4, and while yes, Flex 4 is WAY better than Flex 3.x was, there are still a lot of things that you cannot do with CSS "out of the box". For example, lets say you wanted to have a nice button that was comprised of 3 or 4 overlaid levels of gradients. For this you would have to use FXG or the graphics API by hand. In CSS3 you can do it by simply having a comma delimited list of gradients assigned to the background attribute, and then control the repetition, positioning, and scaling of each in the same fashion, by having those values in a comma-delimited list on the corresponding attribute. That way the same style could be easily applied to both mobile and web button components in a reliable and scalable fashion.
Also, if you are using SASS or LESS you can create variables within the stylesheet that correspond to a particular RGBA color value. With CSS imports you can easily have a CSS file that essentially acts as your global color palette and you assign the colors in ways that work well ( i.e. Michigan Maize ) On Fri, Jun 7, 2013 at 11:15 AM, Alex Harui <aha...@adobe.com> wrote: > OTOH, Flex CSS differs from W3C in several ways: > > 1) non-standard property names do not follow W3C naming rules > 2) Some common properties like margins are not supported > 3) Size properties (width height, etc) not supported > 4) Flex uses gap which is not supported in W3C CSS > 5) Attribute selectors not supported > 6) Most media query rules not supported > 7) Units other than px not supported > > I'm hoping to get more of this working in FlexJS. > > > On 6/7/13 2:14 AM, "christofer.d...@c-ware.de" <christofer.d...@c-ware.de> > wrote: > > >Something I would certainly like to have woud be the ability to Import > >other CSS files :-) > > > >Chris > > > >________________________________________ > >Von: Justin Mclean [jus...@classsoftware.com] > >Gesendet: Freitag, 7. Juni 2013 08:37 > >An: dev@flex.apache.org > >Betreff: Re: Thoughts about CSS and Flex > > > >Hi, > > > >> the CSS support in Flex is highly limited in its present state. > > > >What do you think it's missing? > > > >Flex 4 added a lot of advanced CSS support and it now supports class, > >type, compound, id, descendant and pseudo selectors and media queries. > > > > > http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf6288 > >3-7ff2.html > > > >Thanks, > >Justin > >