Friday, 7 June 2013

Re: value of length in css properties

In article
<OFC4CFBE13.FF734988-ONC1257B83.004C479D-C1257B83.004C479F@solog.net>,
<Valentin.Coudert@solog.net> wrote:

> When I retrieve some css properties, the value of length is not exactly
> equal to the value in my css file. For instance, I set 300% for the
> letter-spacing in my css file but the returned value is 307200. Is that
> normal ?

For letter spacing I'd expect percentage values to be rejected as
invalid. Also, note that values will be in css_fixed format. You can use
libcss/fpmath.h to convert. e.g. FIXTOINT or FIXTOFLT.

--

Michael Drake (tlsa) http://www.netsurf-browser.org/

No comments:

Post a Comment