Skip to content

Truly independent web browser

LibWeb: Choose the element to split in insertParagraph by its display

Andreas Klinga3f3c52a3107
diff --git a/Libraries/LibWeb/Editing/Commands.cpp b/Libraries/LibWeb/Editing/Commands.cpp
index d2e5be3861b..648e76ff8f1 100644
--- a/Libraries/LibWeb/Editing/Commands.cpp
+++ b/Libraries/LibWeb/Editing/Commands.cpp
@@ -1569,9 +1569,18 @@ bool command_insert_paragraph_action(DOM::Document& document, Utf16View)
// 8. Let container equal node.
auto container = node;
+ // INTEROP: Browsers split a flex or grid item that is not a single-line container, such as a span, instead of the
+ // flex or grid container.
+ auto is_flex_or_grid_item = [](DOM::Node& node) {
+ if (!is<HTML::HTMLElement>(node) || !node.is_editable() || !node.parent())
+ return false;
+ auto parent_display = resolved_display(*node.parent());
+ return parent_display.has_value() && (parent_display->is_flex_inside() || parent_display->is_grid_inside());
+ };
+
// 9. While container is not a single-line container, and container's parent is editable and in the same editing
// host as node, set container to its parent.
- while (!is_single_line_container(*container)) {
+ while (!is_single_line_container(*container) && !is_flex_or_grid_item(*container)) {
auto container_parent = container->parent();
if (!container_parent->is_editable() || !is_in_same_editing_host(*node, *container_parent))
break;
@@ -1604,17 +1613,35 @@ bool command_insert_paragraph_action(DOM::Document& document, Utf16View)
container = outer_container;
}
- // 11. If container is not editable or not in the same editing host as node or is not a single-line container:
- if (!container->is_editable() || !is_in_same_editing_host(*container, *node) || !is_single_line_container(*container)) {
- // INTEROP: Browsers do not create a new paragraph in an editing host that is inline-level, or that cannot
- // contain the default single-line container, such as a span. They insert a line break instead.
+ auto container_is_editable_in_same_editing_host = container->is_editable() && is_in_same_editing_host(*container, *node);
+ auto container_display = resolved_display(*container);
+
+ // INTEROP: Browsers treat a single-line container that is inline-level like a span when its parent cannot contain
+ // the default single-line container. They insert a line break in it instead of splitting it.
+ if (container_is_editable_in_same_editing_host && is_single_line_container(*container)
+ && container_display.has_value() && container_display->is_inline_outside() && container->parent()
+ && !is_allowed_child_of_node(document.default_single_line_container_name(), GC::Ref { *container->parent() }))
+ return command_insert_linebreak_action(document, {});
+
+ // INTEROP: Browsers do not create a new paragraph in an editing host that is inline-level, or that cannot contain
+ // the default single-line container, such as a span. They insert a line break instead. But they split a
+ // block-level element that is not a single-line container, such as a span with display: block.
+ auto should_split_block_level_container = container_is_editable_in_same_editing_host && is_flex_or_grid_item(*container);
+ if (!should_split_block_level_container && (!container_is_editable_in_same_editing_host || !is_single_line_container(*container))) {
if (auto editing_host = node->editing_host()) {
auto display = resolved_display(*editing_host);
if ((display.has_value() && display->is_inline_outside())
- || !is_allowed_child_of_node(document.default_single_line_container_name(), GC::Ref { *editing_host }))
- return command_insert_linebreak_action(document, {});
+ || !is_allowed_child_of_node(document.default_single_line_container_name(), GC::Ref { *editing_host })) {
+ should_split_block_level_container = container_is_editable_in_same_editing_host && is<HTML::HTMLElement>(*container)
+ && container_display.has_value() && container_display->is_block_outside();
+ if (!should_split_block_level_container)
+ return command_insert_linebreak_action(document, {});
+ }
}
+ }
+ // 11. If container is not editable or not in the same editing host as node or is not a single-line container:
+ if (!should_split_block_level_container && (!container_is_editable_in_same_editing_host || !is_single_line_container(*container))) {
// 1. Let tag be the default single-line container name.
auto tag = document.default_single_line_container_name();
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertParagraph.txt
index f0bcecba735..55a442e1eb4 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertParagraph.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <p contenteditable style="display:block; white-space:normal">a[]b</p>
Pass <p contenteditable style="display:block; white-space:normal"><span style="white-space:normal">a[]b</span></p>
-Fail <p contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:normal"><div>a[]b</div></p>
Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertText.txt
index f0bcecba735..55a442e1eb4 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=block&command=insertText.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <p contenteditable style="display:block; white-space:normal">a[]b</p>
Pass <p contenteditable style="display:block; white-space:normal"><span style="white-space:normal">a[]b</span></p>
-Fail <p contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:normal"><div>a[]b</div></p>
Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertParagraph.txt
index 82a8257acfa..5125f71e359 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertParagraph.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <p contenteditable style="display:inline; white-space:normal">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:normal"><span style="white-space:normal">a[]b</span></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:normal"><div>a[]b</div></p>
Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertText.txt
index 82a8257acfa..5125f71e359 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline&command=insertText.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <p contenteditable style="display:inline; white-space:normal">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:normal"><span style="white-space:normal">a[]b</span></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:normal"><div>a[]b</div></p>
Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertParagraph.txt
index ee2ef0170f2..95d12c06371 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertParagraph.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <p contenteditable style="display:inline-block; white-space:normal">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:normal"><span style="white-space:normal">a[]b</span></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:normal"><div>a[]b</div></p>
Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertText.txt
index ee2ef0170f2..95d12c06371 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=normal&display=inline-block&command=insertText.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <p contenteditable style="display:inline-block; white-space:normal">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:normal"><span style="white-space:normal">a[]b</span></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:normal"><div>a[]b</div></p>
Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertParagraph.txt
index 01d19934b11..69f048aca7f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:block; white-space:pre">a[]b</p>
Pass <p contenteditable style="display:block; white-space:pre"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></p>
-Fail <p contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre"><div>a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertText.txt
index 01d19934b11..69f048aca7f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:block; white-space:pre">a[]b</p>
Pass <p contenteditable style="display:block; white-space:pre"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></p>
-Fail <p contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre"><div>a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertParagraph.txt
index d987d2b8c05..720ccb57d2f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline; white-space:pre">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:pre"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertText.txt
index d987d2b8c05..720ccb57d2f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline; white-space:pre">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:pre"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertParagraph.txt
index a5d6f0330ff..ea4217f2fcd 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline-block; white-space:pre">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertText.txt
index a5d6f0330ff..ea4217f2fcd 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre&display=inline-block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline-block; white-space:pre">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertParagraph.txt
index 32819bccfc7..66add985d79 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:block; white-space:pre-line">a[]b</p>
Pass <p contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-line"><div>a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertText.txt
index 32819bccfc7..66add985d79 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:block; white-space:pre-line">a[]b</p>
Pass <p contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-line"><div>a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertParagraph.txt
index bf0a9df3e79..b996d94e578 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline; white-space:pre-line">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-line"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertText.txt
index bf0a9df3e79..b996d94e578 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline; white-space:pre-line">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-line"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertParagraph.txt
index 6805f368390..c063abbfa4d 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline-block; white-space:pre-line">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertText.txt
index 6805f368390..c063abbfa4d 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-line&display=inline-block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline-block; white-space:pre-line">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertParagraph.txt
index 7ea428b2709..b07de9f6115 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:block; white-space:pre-wrap">a[]b</p>
Pass <p contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-wrap"><div>a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertText.txt
index 7ea428b2709..b07de9f6115 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:block; white-space:pre-wrap">a[]b</p>
Pass <p contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:block; white-space:pre-wrap"><div>a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertParagraph.txt
index 0df5d7c3ddc..417c1e7630f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline; white-space:pre-wrap">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertText.txt
index 0df5d7c3ddc..417c1e7630f 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline; white-space:pre-wrap">a[]b</p>
Pass <p contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt
index a3948d0701d..5de2c621dff 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertText.txt
index a3948d0701d..5de2c621dff 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=p&white-space=pre-wrap&display=inline-block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap">a[]b</p>
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></p>
Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div>a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
-Fail <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></p>
+Pass <p contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></p>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertParagraph.txt
index e83e27bd4b6..975a0b6f8d3 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertParagraph.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <span contenteditable style="display:block; white-space:normal">a[]b</span>
Pass <span contenteditable style="display:block; white-space:normal"><span style="white-space:normal">a[]b</span></span>
-Fail <span contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:normal"><div>a[]b</div></span>
Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertText.txt
index e83e27bd4b6..975a0b6f8d3 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=block&command=insertText.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <span contenteditable style="display:block; white-space:normal">a[]b</span>
Pass <span contenteditable style="display:block; white-space:normal"><span style="white-space:normal">a[]b</span></span>
-Fail <span contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:normal"><div>a[]b</div></span>
Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertParagraph.txt
index 1f7501d52f0..3da30502687 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertParagraph.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <span contenteditable style="display:inline; white-space:normal">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:normal"><span style="white-space:normal">a[]b</span></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:normal"><div>a[]b</div></span>
Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertText.txt
index 1f7501d52f0..3da30502687 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline&command=insertText.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <span contenteditable style="display:inline; white-space:normal">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:normal"><span style="white-space:normal">a[]b</span></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:normal"><div>a[]b</div></span>
Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertParagraph.txt
index afcd9ec488d..906c30372fd 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertParagraph.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <span contenteditable style="display:inline-block; white-space:normal">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:normal"><span style="white-space:normal">a[]b</span></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:normal"><div>a[]b</div></span>
Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertText.txt
index afcd9ec488d..906c30372fd 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=normal&display=inline-block&command=insertText.txt
@@ -2,13 +2,13 @@ Harness status: OK
Found 8 tests
-3 Pass
-5 Fail
+7 Pass
+1 Fail
Pass <span contenteditable style="display:inline-block; white-space:normal">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:normal"><span style="white-space:normal">a[]b</span></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:normal"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:normal"><div>a[]b</div></span>
Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:normal"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertParagraph.txt
index 69517a4bb96..b4408290408 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:block; white-space:pre">a[]b</span>
Pass <span contenteditable style="display:block; white-space:pre"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></span>
-Fail <span contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre"><div>a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertText.txt
index 69517a4bb96..b4408290408 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:block; white-space:pre">a[]b</span>
Pass <span contenteditable style="display:block; white-space:pre"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></span>
-Fail <span contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre"><div>a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertParagraph.txt
index 52d372b4198..507a8df9452 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline; white-space:pre">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:pre"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertText.txt
index 52d372b4198..507a8df9452 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline; white-space:pre">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:pre"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertParagraph.txt
index 95571fbbd29..a2aa5148037 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline-block; white-space:pre">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertText.txt
index 95571fbbd29..a2aa5148037 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre&display=inline-block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline-block; white-space:pre">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre"><span style="white-space:normal"><span style="white-space:pre">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertParagraph.txt
index fc55c804093..d01d9d92448 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:block; white-space:pre-line">a[]b</span>
Pass <span contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-line"><div>a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertText.txt
index fc55c804093..d01d9d92448 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:block; white-space:pre-line">a[]b</span>
Pass <span contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-line"><div>a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertParagraph.txt
index 6353eb8c71a..9c3a17d0ab9 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline; white-space:pre-line">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-line"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertText.txt
index 6353eb8c71a..9c3a17d0ab9 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline; white-space:pre-line">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-line"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertParagraph.txt
index a45868cb801..8c2f8759c18 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline-block; white-space:pre-line">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertText.txt
index a45868cb801..8c2f8759c18 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-line&display=inline-block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline-block; white-space:pre-line">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-line"><span style="white-space:normal"><span style="white-space:pre-line">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-line"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertParagraph.txt
index 3ba5819a00b..bca59b602b5 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:block; white-space:pre-wrap">a[]b</span>
Pass <span contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-wrap"><div>a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertText.txt
index 3ba5819a00b..bca59b602b5 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:block; white-space:pre-wrap">a[]b</span>
Pass <span contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:block; white-space:pre-wrap"><div>a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertParagraph.txt
index 06a4f0aab86..8eaaf819d19 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline; white-space:pre-wrap">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertText.txt
index 06a4f0aab86..8eaaf819d19 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline; white-space:pre-wrap">a[]b</span>
Pass <span contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt
index b445c43801c..3ceb205f48c 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertParagraph.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertText.txt
index b445c43801c..3ceb205f48c 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertText.txt
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-editing-host-cannot-have-div.tentative@host=span&white-space=pre-wrap&display=inline-block&command=insertText.txt
@@ -2,14 +2,13 @@ Harness status: OK
Found 9 tests
-4 Pass
-5 Fail
+9 Pass
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap">a[]b</span>
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="white-space:normal"><span style="white-space:pre-wrap">a[]b</span></span></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><span style="display:block;white-space:normal">a[]b</span></span>
Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div>a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
-Fail <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline;white-space:normal">a[]b</div></span>
+Pass <span contenteditable style="display:inline-block; white-space:pre-wrap"><div style="display:inline-block;white-space:normal">a[]b</div></span>
\ No newline at end of file
diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected] b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
index fdd9c58d1f4..e069782798c 100644
--- a/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/run/[email protected]
@@ -2,8 +2,8 @@ Harness status: OK
Found 195 tests
-153 Pass
-42 Fail
+169 Pass
+26 Fail
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "foo<br>[]bar<br><span>baz</span>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "foo<br>[]bar<br><span>baz</span>" checks for modifications to non-editable content
Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "foo<br>[]bar<br><span>baz</span>" compare innerHTML
@@ -74,35 +74,35 @@ Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "{}<br><span sty
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:flex><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-flex><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>abc[]</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>abc[]</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:flex><span>abc[]</span></div>" checks for modifications to non-editable content
@@ -122,35 +122,35 @@ Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=disp
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>[]abc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:grid><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>": execCommand("defaultparagraphseparator", false, "p") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>" checks for modifications to non-editable content
-Fail [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>" compare innerHTML
+Pass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div style=display:inline-grid><span>a[]bc</span></div>" compare innerHTML
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>abc[]</span></div>": execCommand("defaultparagraphseparator", false, "div") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>abc[]</span></div>": execCommand("insertparagraph", false, "") return value
Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div style=display:grid><span>abc[]</span></div>" checks for modifications to non-editable content