Created attachment 243309 [details] Test Case Floats aren't being painted properly in tree order. Instead the order they paint is dependent on whether they overhang.
<rdar://problem/20265591>
I am able to reproduce this bug in Safari 15.6 on macOS 12.5 using attached test case and it shows "RED" square / box in Safari but all other browsers (Chrome Canary 106 and Firefox Nightly 104) show it as "GREEN" square / box. Thanks!