From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../edit-context-basics.tentative.html | 196 ++++++++++++++++ .../edit-context-execCommand.tentative.https.html | 111 +++++++++ .../edit-context-inheritability.tentative.html | 182 +++++++++++++++ .../edit-context/edit-context-input.tentative.html | 249 +++++++++++++++++++++ .../edit-context-property.tentative.html | 90 ++++++++ 5 files changed, 828 insertions(+) create mode 100644 testing/web-platform/tests/editing/edit-context/edit-context-basics.tentative.html create mode 100644 testing/web-platform/tests/editing/edit-context/edit-context-execCommand.tentative.https.html create mode 100644 testing/web-platform/tests/editing/edit-context/edit-context-inheritability.tentative.html create mode 100644 testing/web-platform/tests/editing/edit-context/edit-context-input.tentative.html create mode 100644 testing/web-platform/tests/editing/edit-context/edit-context-property.tentative.html (limited to 'testing/web-platform/tests/editing/edit-context') diff --git a/testing/web-platform/tests/editing/edit-context/edit-context-basics.tentative.html b/testing/web-platform/tests/editing/edit-context/edit-context-basics.tentative.html new file mode 100644 index 0000000000..78b6824921 --- /dev/null +++ b/testing/web-platform/tests/editing/edit-context/edit-context-basics.tentative.html @@ -0,0 +1,196 @@ + + + +EditContext: The HTMLElement.editContext property + + + + + +
+
+ + + diff --git a/testing/web-platform/tests/editing/edit-context/edit-context-execCommand.tentative.https.html b/testing/web-platform/tests/editing/edit-context/edit-context-execCommand.tentative.https.html new file mode 100644 index 0000000000..daa9df3cce --- /dev/null +++ b/testing/web-platform/tests/editing/edit-context/edit-context-execCommand.tentative.https.html @@ -0,0 +1,111 @@ + + + +EditContext: document.execCommand + + + + + + + + + + + diff --git a/testing/web-platform/tests/editing/edit-context/edit-context-inheritability.tentative.html b/testing/web-platform/tests/editing/edit-context/edit-context-inheritability.tentative.html new file mode 100644 index 0000000000..59c553d966 --- /dev/null +++ b/testing/web-platform/tests/editing/edit-context/edit-context-inheritability.tentative.html @@ -0,0 +1,182 @@ + + + +EditContext: Inherited Editability + + + + + + + + +
Text in EditContext-associated element, should be editable
+ +
+
+ Element child of EditContext, should be editable +
+
+ +
+
+
+ This is a contenteditable="" child of contenteditable="false" parent. + This node should be editable. It should be the target of beforeinput/input events when the user edits here. + The grandparent node #edit-context-0 should not be the target of beforeinput/input events, + and the EditContext should not receive + textupdate events +
+
+
+ +
+
+
+
+ This is an contenteditable="" child of a contenteditable="". Since this is the child of an + editable element, when the user types here, it's the parent contenteditable="" that gets + input/beforeinput events, and this doesn't. Basically the child contenteditable="" attribute + is a no-op. +
+
+
+
+ +
+
+
+ This is an EditContext child of contenteditable="false" parent. + This node should be editable, and this EditContext (but not the + grandparent EditContext) should get events, since there is an + intermediate non-editable parent. +
+
+
+ +
+
+ This is a contenteditable="" child of EditContext. + It inherits editability from the parent and it should not be the target of beforeinput/input events. + Setting contenteditable="" on this node is basically a no-op. +
+
+ +
+ +
+ +
+
+ EditContext child of EditContext. When user types here, + events are fired only against the parent EditContext, not this one. + Since the parent element was editable, the EditContext association is basically a no-op. +
+
+ + + + diff --git a/testing/web-platform/tests/editing/edit-context/edit-context-input.tentative.html b/testing/web-platform/tests/editing/edit-context/edit-context-input.tentative.html new file mode 100644 index 0000000000..762ec59547 --- /dev/null +++ b/testing/web-platform/tests/editing/edit-context/edit-context-input.tentative.html @@ -0,0 +1,249 @@ + + + +EditContext: The HTMLElement.editContext property + + + + + + + + + + diff --git a/testing/web-platform/tests/editing/edit-context/edit-context-property.tentative.html b/testing/web-platform/tests/editing/edit-context/edit-context-property.tentative.html new file mode 100644 index 0000000000..c63d5f8cf6 --- /dev/null +++ b/testing/web-platform/tests/editing/edit-context/edit-context-property.tentative.html @@ -0,0 +1,90 @@ + + + +EditContext: The HTMLElement.editContext property + + + + + + + + + -- cgit v1.2.3