Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: cc6226105c2c63dcdcba5e7cde9d8ee4408da9e3 https://github.com/WebKit/WebKit/commit/cc6226105c2c63dcdcba5e7cde9d8ee4408da9e3 Author: Alan Baradlay <za...@apple.com> Date: 2025-04-10 (Thu, 10 Apr 2025)
Changed paths: M LayoutTests/imported/w3c/web-platform-tests/editing/run/inserthorizontalrule-expected.txt M Source/WebCore/rendering/RenderBlockFlow.cpp Log Message: ----------- [content-visibility] Do not layout inline content when formatting context root is also skipped subtree root https://bugs.webkit.org/show_bug.cgi?id=291205 Reviewed by Antti Koivisto. While in this case we don't run layout on the inline content <div style='content-visibility: hidden> <div>inline content</div> </div> we do on this content <div style='content-visibility: hidden> inline content </div> and the only reason why it is not observable (other than through dumping the inline structures) is because the skipped root has size and paint containments (0 auto height, no painting child content). * Source/WebCore/rendering/RenderBlockFlow.cpp: (WebCore::RenderBlockFlow::layoutInFlowChildren): LayoutTests/imported/w3c/web-platform-tests/editing/run/inserthorizontalrule.html This never really worked (hr does not get inserted inside the <details>) but now at least we match Chrome by not even lying about it. Canonical link: https://commits.webkit.org/293516@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes