From 790aab4f73f8388df1602f915aff1af68371fcd4 Mon Sep 17 00:00:00 2001 From: Masayuki Nakano Date: Sat, 1 Mar 2025 01:16:21 +0000 Subject: [PATCH] Add WPTs to check the editing behavior when `contenteditable="plaintext-only"` and `contenteditable="true"` are nested Adding the tests for the conclusion of . If `contenteditable="true"` (`=""`) and `contenteditable="plaintext-only"` without `contenteditable="false"`, the outermost editing host should consider whether it's a richtext editor or a plaintext editor. Differential Revision: https://phabricator.services.mozilla.com/D239868 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1921171 gecko-commit: ecc241ac8ebc8b436b9ca4d9a0474b78b960107e gecko-reviewers: smaug --- .../nested-with-contenteditable-true.html | 189 ++++++++++++++++++ ...ested-with-contenteditable-true.https.html | 108 ++++++++++ .../plaintext-only-in-designMode.html | 44 ++++ 3 files changed, 341 insertions(+) create mode 100644 editing/plaintext-only/nested-with-contenteditable-true.html create mode 100644 editing/plaintext-only/paste-when-nested-with-contenteditable-true.https.html create mode 100644 editing/plaintext-only/plaintext-only-in-designMode.html diff --git a/editing/plaintext-only/nested-with-contenteditable-true.html b/editing/plaintext-only/nested-with-contenteditable-true.html new file mode 100644 index 00000000000000..d94cca9b1e5812 --- /dev/null +++ b/editing/plaintext-only/nested-with-contenteditable-true.html @@ -0,0 +1,189 @@ + + + + + +Testing contenteditable=plaintext-only which is nested with contenteditable=true + + + + + + + + + + diff --git a/editing/plaintext-only/paste-when-nested-with-contenteditable-true.https.html b/editing/plaintext-only/paste-when-nested-with-contenteditable-true.https.html new file mode 100644 index 00000000000000..b521c5522faced --- /dev/null +++ b/editing/plaintext-only/paste-when-nested-with-contenteditable-true.https.html @@ -0,0 +1,108 @@ + + + + + +Delete editor in a shadow + + + + + + + + + + diff --git a/editing/plaintext-only/plaintext-only-in-designMode.html b/editing/plaintext-only/plaintext-only-in-designMode.html new file mode 100644 index 00000000000000..9209f6e58fa89b --- /dev/null +++ b/editing/plaintext-only/plaintext-only-in-designMode.html @@ -0,0 +1,44 @@ + + + + + +Delete editor in a shadow + + + + + + + + + +
+ +