RenderLayer::collectLayers decides whether to include layers inside visibility:hidden based on `compositor().usesCompositing()`, which isn't (guaranteed to be) computed until after compositing layers have been decided. If the compositing state does change, nothing invalidates the RenderLayer z-order lists, so we can remain in this unexpected state.
<rdar://problem/131491132>
Pull request: https://github.com/WebKit/WebKit/pull/30666
*** Bug 250283 has been marked as a duplicate of this bug. ***
Committed 280917@main (4599e0a66d9d): <https://commits.webkit.org/280917@main> Reviewed commits have been landed. Closing PR #30666 and removing active labels.
Committed 280938.113@safari-7619-branch (d2b834fc70aa): <https://commits.webkit.org/280938.113@safari-7619-branch> Reviewed commits have been landed. Closing PR #1480 and removing active labels.