Why do browsers render rgba differently on OSX?
First off
Well, actually Safari and Firefox are both correct:0xFF = 255
, 255 / 2 = 127.5
. So 128
may be correct (0x80
), but also 127
(0x7F
) - depending on the rounding convention of the browser.
Explantion of the issue
These are rounding issues. I don't quite get why there are rounding issues, since 0.5 is representable in binary numbers without precision loss, but there are, in fact rounding issues:
Opera:
Chrome:
When I checked in chrome & safari, But I got exact same rgba color #808080 in both. Let us know which browser version you are using.