[webkit-dev] maximum z-index value
eric at webkit.org
Thu May 14 15:45:02 PDT 2009
Using google to compute the log base 2 (lg) = lg(16777271) gave me the answer.
It must have been a 24-bit bitfield. I expect this would have been
on RenderLayer, and was for saving space.
On Fri, May 15, 2009 at 2:38 AM, Eric Puidokas <eric at puidokas.com> wrote:
> I've noticed Safari 3.2.1 has a maximum z-index value of 16777271. It's been
> fixed in the nightly to be the max value of a 32-bit signed int
> (2147483647). I'm curious if anyone knows where the number 16777271 came
> from before the bug was fixed. It doesn't correspond to any data type I know
> of. Thanks.
> Eric Puidokas
> eric at puidokas.com
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
More information about the webkit-dev