Truly independent web browser
LibWeb: Insert a line break for insertParagraph in inline editing hosts
Andreas Kling14c408a2f1d4
diff --git a/Libraries/LibWeb/Editing/Commands.cpp b/Libraries/LibWeb/Editing/Commands.cppindex 7d513a86cb0..db17bd14a9d 100644--- a/Libraries/LibWeb/Editing/Commands.cpp+++ b/Libraries/LibWeb/Editing/Commands.cpp@@ -1587,6 +1587,15 @@ bool command_insert_paragraph_action(DOM::Document& document, Utf16View)// 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.+ 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, {});+ }+// 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-inline-editing-host.tentative@white-space=normal&display=block&method=enter.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=block&method=enter.txtindex da4a2f64ac7..dce9fee6dfc 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=block&method=enter.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=block&method=enter.txt@@ -2,26 +2,26 @@ Harness status: OKFound 22 tests-22 Fail-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of file+22 Pass+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline&method=enter.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline&method=enter.txtindex 25747514798..aa911637371 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline&method=enter.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline&method=enter.txt@@ -2,26 +2,26 @@ Harness status: OKFound 22 tests-22 Fail-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of file+22 Pass+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline-block&method=enter.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline-block&method=enter.txtindex 5ea51cb123f..d496cc2253b 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline-block&method=enter.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=inline-block&method=enter.txt@@ -2,26 +2,26 @@ Harness status: OKFound 22 tests-22 Fail-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of file+22 Pass+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:inline-block;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=list-item&method=enter.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=list-item&method=enter.txtindex 4f3a773e28c..dacf2dd770d 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=list-item&method=enter.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=list-item&method=enter.txt@@ -2,26 +2,26 @@ Harness status: OKFound 22 tests-22 Fail-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of file+22 Pass+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:list-item;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=table-cell&method=enter.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=table-cell&method=enter.txtindex 87e897e1172..82b7c407707 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=table-cell&method=enter.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-in-inline-editing-host.tentative@white-space=normal&display=table-cell&method=enter.txt@@ -2,26 +2,26 @@ Harness status: OKFound 22 tests-22 Fail-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)-Fail insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of file+22 Pass+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}<br></span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">[]abcd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=div)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <br> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by a <div> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}</span> followed by text (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">{}<br></span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">[]abcd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">ab[]cd</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <br> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by a <div> element (defaultParagraphSeparator=p)+Pass insertParagraph in <span contenteditable style="display:table-cell;white-space:normal">abcd[]</span> followed by text (defaultParagraphSeparator=p)\ No newline at end of filediff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertParagraph.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertParagraph.txtindex 975bdae971d..cb30d07a0ff 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertParagraph.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertParagraph.txt@@ -2,8 +2,8 @@ Harness status: OKFound 138 tests-92 Pass-46 Fail+104 Pass+34 FailPass <div contenteditable style="white-space:nowrap; display:block">abc[]</div> (defaultParagraphSeparator: div)Pass <div contenteditable style="white-space:nowrap; display:block">[]abc</div> (defaultParagraphSeparator: div)Pass <div contenteditable style="white-space:nowrap; display:block">a[]bc</div> (defaultParagraphSeparator: div)@@ -27,9 +27,9 @@ Pass <div contenteditable style="display:block; white-space:nowrap"><p>a[]bc</p>Pass <div contenteditable><p style="display:block; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: div)Pass <div contenteditable><p style="display:block; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: div)Pass <div contenteditable><p style="display:block; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: div)Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)Pass <div contenteditable style="display:inline"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: div)@@ -50,9 +50,9 @@ Pass <div contenteditable style="display:inline; white-space:nowrap"><p>a[]bc</pFail <div contenteditable><p style="display:inline; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: div)Fail <div contenteditable><p style="display:inline; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: div)Fail <div contenteditable><p style="display:inline; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: div)Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)Pass <div contenteditable style="display:inline-block"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: div)@@ -96,9 +96,9 @@ Pass <div contenteditable style="display:block; white-space:nowrap"><p>a[]bc</p>Pass <div contenteditable><p style="display:block; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: p)Pass <div contenteditable><p style="display:block; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: p)Pass <div contenteditable><p style="display:block; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: p)Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)Pass <div contenteditable style="display:inline"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: p)@@ -119,9 +119,9 @@ Pass <div contenteditable style="display:inline; white-space:nowrap"><p>a[]bc</pFail <div contenteditable><p style="display:inline; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: p)Fail <div contenteditable><p style="display:inline; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: p)Fail <div contenteditable><p style="display:inline; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: p)Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)Pass <div contenteditable style="display:inline-block"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: p)diff --git a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertText.txt b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertText.txtindex 833d6aa37c0..0d82a0c60db 100644--- a/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertText.txt+++ b/Tests/LibWeb/Text/expected/wpt-import/editing/other/insertparagraph-with-white-space-style.tentative@white-space=nowrap&command=insertText.txt@@ -2,8 +2,8 @@ Harness status: OKFound 138 tests-90 Pass-48 Fail+102 Pass+36 FailPass <div contenteditable style="white-space:nowrap; display:block">abc[]</div> (defaultParagraphSeparator: div)Pass <div contenteditable style="white-space:nowrap; display:block">[]abc</div> (defaultParagraphSeparator: div)Pass <div contenteditable style="white-space:nowrap; display:block">a[]bc</div> (defaultParagraphSeparator: div)@@ -27,9 +27,9 @@ Pass <div contenteditable style="display:block; white-space:nowrap"><p>a[]bc</p>Pass <div contenteditable><p style="display:block; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: div)Pass <div contenteditable><p style="display:block; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: div)Pass <div contenteditable><p style="display:block; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: div)Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)Pass <div contenteditable style="display:inline"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: div)@@ -50,9 +50,9 @@ Pass <div contenteditable style="display:inline; white-space:nowrap"><p>a[]bc</pFail <div contenteditable><p style="display:inline; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: div)Fail <div contenteditable><p style="display:inline; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: div)Fail <div contenteditable><p style="display:inline; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: div)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: div)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: div)Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: div) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: div) (preserving inline style test)Pass <div contenteditable style="display:inline-block"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: div)@@ -96,9 +96,9 @@ Pass <div contenteditable style="display:block; white-space:nowrap"><p>a[]bc</p>Pass <div contenteditable><p style="display:block; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: p)Pass <div contenteditable><p style="display:block; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: p)Pass <div contenteditable><p style="display:block; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline">[]abc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline">a[]bc</div> (defaultParagraphSeparator: p)Fail <div contenteditable style="white-space:nowrap; display:inline">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)Pass <div contenteditable style="display:inline"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: p)@@ -119,9 +119,9 @@ Pass <div contenteditable style="display:inline; white-space:nowrap"><p>a[]bc</pFail <div contenteditable><p style="display:inline; white-space:nowrap">abc[]</p></div> (defaultParagraphSeparator: p)Fail <div contenteditable><p style="display:inline; white-space:nowrap">[]abc</p></div> (defaultParagraphSeparator: p)Fail <div contenteditable><p style="display:inline; white-space:nowrap">a[]bc</p></div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: p)-Fail <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">[]abc</div> (defaultParagraphSeparator: p)+Pass <div contenteditable style="white-space:nowrap; display:inline-block">a[]bc</div> (defaultParagraphSeparator: p)Fail <div contenteditable style="white-space:nowrap; display:inline-block">abc[]</div> (defaultParagraphSeparator: p) (preserving temporary inline style test)Fail <div contenteditable style="white-space:nowrap; display:inline-block"><b>abc[]</b></div> (defaultParagraphSeparator: p) (preserving inline style test)Pass <div contenteditable style="display:inline-block"><div style="white-space:nowrap">abc[]</div></div> (defaultParagraphSeparator: p)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 ba28c8723de..3f9c4043b52 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: OKFound 1000 tests-949 Pass-51 Fail+954 Pass+46 FailPass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div class=a id=x><div class=b id=y>[]foo</div></div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div class=a id=x><div class=b id=y>[]foo</div></div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","p"],["insertparagraph",""]] "<div class=a id=x><div class=b id=y>[]foo</div></div>" queryCommandValue("insertparagraph") before@@ -275,7 +275,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div> []abc<Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contenteditable=false><span contenteditable>ab[]cd</span></h1>" queryCommandValue("insertparagraph") before@@ -285,7 +285,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<h1 contentedPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contenteditable=false><li><span contenteditable>ab[]cd</span></li></ol>" queryCommandValue("insertparagraph") before@@ -295,7 +295,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<ol contentedPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dt><span contenteditable>ab[]cd</span></dt></dl>" queryCommandValue("insertparagraph") before@@ -305,7 +305,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contentedPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contenteditable=false><dd><span contenteditable>ab[]cd</span></dd></dl>" queryCommandValue("insertparagraph") before@@ -315,7 +315,7 @@ Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<dl contentedPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>": execCommand("defaultparagraphseparator", false, "div") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>": execCommand("insertparagraph", false, "") return valuePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>" checks for modifications to non-editable content-Fail [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>" compare innerHTML+Pass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>" compare innerHTMLPass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>" queryCommandIndeterm("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>" queryCommandState("insertparagraph") beforePass [["defaultparagraphseparator","div"],["insertparagraph",""]] "<div contenteditable=false><h1 contenteditable>ab[]cd</h1></div>" queryCommandValue("insertparagraph") before