1 Reply Latest reply on Oct 30, 2009 5:08 PM by levancho

    CSS: to hyphenate, or not to hyphenate, that is my question

    Rock Paper Spock

      Will hypenated standard CSS properties eventually be deprecated in favour of camel case, or vice versa (e.g. fontFamily not font-family, or conversely, font-size not fontSize)?


      I'm discovering several current (Adobe) documents give examples of both:-

      Defined on MXML <Style>:


              padding-top: 12;
              padding-bottom: 12;
              border-style: solid;


      Defined within external CSS file:


          borderStyle: "solid";
          paddingTop: 12px;
          paddingBottom: 12px;


      (Retrieved from Flex Quick Start: Building a simple user interface <http://www.adobe.com/devnet/flex/quickstart/styling_components/>)