From 79423597243d8278d721a864d3e22d80bc38a9da Mon Sep 17 00:00:00 2001 From: Claudio Saavedra Date: Fri, 31 Mar 2023 20:29:11 -0700 Subject: [PATCH] Cherry-pick 256843.10@webkit-2022.12-embargoed (b7f9b7f4679b). rdar://107499606 Add test for element's display contents change on sibling removal https://bugs.webkit.org/show_bug.cgi?id=248772 Reviewed by Tim Nguyen. This was already fixed with #248776, but add the test for completeness. * LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal-expected.txt: Added. * LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal.html: Added. Canonical link: https://commits.webkit.org/256843.10@webkit-2022.12-embargoed Canonical link: https://commits.webkit.org/262474@main --- ...play-contents-on-node-removal-expected.txt | 1 + ...ring-display-contents-on-node-removal.html | 33 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal-expected.txt create mode 100644 LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal.html diff --git a/LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal-expected.txt b/LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal-expected.txt new file mode 100644 index 000000000000..730ebf66a0da --- /dev/null +++ b/LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal-expected.txt @@ -0,0 +1 @@ +This test passes if it doesn't crash. diff --git a/LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal.html b/LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal.html new file mode 100644 index 000000000000..cddc02082bdc --- /dev/null +++ b/LayoutTests/fast/dom/element-clearing-display-contents-on-node-removal.html @@ -0,0 +1,33 @@ + + + + +

+
+ foo + +
+