top

CSS parsing error

Published 2014-10-28 | (Compatible with SDK 2.5,3.5,4.5,5.0,5.1 and 2011,2012,2013,2014 models)

How to avoid potential CSS parsing errors on 2011 platforms onwards

The CSS parser for platform 2011 onwards is more strict than the one used in the 2010 browser.

It does not allow any white space between the number value and the unit or to skip the unit at all.

Please take a look at the following example:

#AA_Style {
    position: absolute;
    left: 480;              /* Wrong -> 480px is correct */
    top: 0;                 /* Wrong -> 0px is correct */
    width: 480px;           /* Correct */
    height: 50px;           /* Correct */
    z-index: 3;
}