[Webkit-unassigned] [Bug 42012] Alpha value obtained by getComputedStyle is noticeably less than the actual value.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 13 14:05:28 PST 2010


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





--- Comment #4 from Simon Fraser (smfr) <simon.fraser at apple.com>  2010-12-13 14:05:28 PST ---
Internally rgba(255, 255, 0, 0.5) is stored as 0x7fffff00 (ARGB), and 127/255 is 0.49803921568627.

(In reply to comment #2)
> Created an attachment (id=76360)
 --> (https://bugs.webkit.org/attachment.cgi?id=76360&action=review) [details]
> demonstrates issue with getComputedStyle for opacity
> 
> Similarly, if an element's opacity is set to 0.7, getComputedStyle returns 0.699999988079071.

This is just floating point rounding error.

-- 
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