[Webkit-unassigned] [Bug 26984] New: style properties depend on locale.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 5 14:05:26 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=26984

           Summary: style properties depend on locale.
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Mac OS X 10.5
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Gtk
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arno at renevier.net


Hi,
style properties (as read with javascript) depend on locale.
For example, following piece of code:

    p.style.width = '100.5px';
    alert(p.style.width);

show 100,5px with  a french locale and 100.5px with an english locale (decimal
separator is not the same).
That makes comparaison and parsing of those results nearly impossible in a
cross-locale way.
Moreover, as parseFloat is not locale dependant, 

p.style.opacity = 0.5;
parseFloat(p.style.opacity);

shows 0 with a french locale and 0.5 with an english locale.
That's quite disturbing.

Setting to gtk component as I don't known if it happens with other backends.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list