Your example works for me so only difference is that you have stgyle and
mine is a class.



On Fri, Apr 2, 2010 at 2:24 PM, Oskar Krawczyk <[email protected]>wrote:

> Both, Firefox and Webkit-based, return the value in *points*.
>
>
> On 2 Apr 2010, at 22:18, Matthew Hazlett wrote:
>
> Works fine for me, reports it as pt.
>
> http://mootools.net/shell/7EcVt/
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Trevor Orr
> *Sent:* Friday, April 02, 2010 3:58 PM
> *To:* [email protected]
> *Subject:* Re: [Moo] Re: get style issue
>
>
> I am not mixing pt and px, my css is defined as 20pt the result from
> getStyle is 26.667px instead of 20pt.  And I agree about the pt may be
> seldom used but that is how the css is written for what I am working on.
> Could it be the browser converting pt to px?
>
>
> On Fri, Apr 2, 2010 at 11:15 AM, ghazal <[email protected]> wrote:
> Aren't you mixing pt and px ?
> AFAIK, pt is seldom used as a web measure.
>
>
> On Apr 2, 8:08 pm, Trevor Orr <[email protected]> wrote:
> > When I use getStyle to get an elements font-size that is specified as
> 20pt
> > the getStyle function returns 26.6667px.  How do I get 20pt instead of
> > 26.6667px?
> >
> > Here is my example:http://mootools.net/shell/cRxnN/
>
> --
> To unsubscribe, reply using "remove me" as the subject.
>
>
>
>

Reply via email to