layers and zindex in Safari

David Hyatt hyatt at apple.com
Fri Aug 29 15:56:57 CEST 2003


Yeah, these fail in Safari still.  I never looked at that page closely 
since one of the tests was invalid, but tests 4 and 5 are definitely 
correct.

Nice catch.  The sorting code was supposed to never reorder children 
with the same z-index, but I obviously screwed that up somehow.

dave

On Saturday, August 30, 2003, at 2:37 PM, Lars Knoll wrote:
> At least in the latest released webcore it doesn't. Have a look at the
> sortByZOrder function in your render_layer.cpp. It sort the tree by 
> z-index
> ussing bubble and merge sort. These do not preserve order in case the 
> z-index
> is the same. That's why I added the idx member to the PositionedLayer 
> struct.
>
> You can find some examples that are rendered wrongly on
> http://dbaron.org/css/test/sec0909. The test case is not completely 
> valid
> (test case number 8 is invalid). But using your code test cases 4
> and 5 (which I verified to be correct) fail.
>
> Cheers,
> Lars
> _______________________________________________
> Khtml-devel at mail.kde.org
> http://mail.kde.org/mailman/listinfo/khtml-devel



More information about the Khtml-devel mailing list