Allow scrolled-content-block to have a height for editable elements.

Differential Revision: https://phabricator.services.mozilla.com/D99460

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1681375
gecko-commit: 34938f7c55a3faae7b1d75aa1ed684f651512d2b
gecko-reviewers: layout-reviewers, mats
diff --git a/html/editing/editing-0/contenteditable/contenteditable-overflow-height-ref.html b/html/editing/editing-0/contenteditable/contenteditable-overflow-height-ref.html
new file mode 100644
index 0000000..e88e904
--- /dev/null
+++ b/html/editing/editing-0/contenteditable/contenteditable-overflow-height-ref.html
@@ -0,0 +1,9 @@
+<!doctype html>
+<title>CSS test reference</title>
+<style>
+  [contenteditable] {
+    outline: 1px solid black;
+    outline-offset: -1px;
+  }
+</style>
+<div contenteditable></div>
diff --git a/html/editing/editing-0/contenteditable/contenteditable-overflow-height.html b/html/editing/editing-0/contenteditable/contenteditable-overflow-height.html
new file mode 100644
index 0000000..8470b02
--- /dev/null
+++ b/html/editing/editing-0/contenteditable/contenteditable-overflow-height.html
@@ -0,0 +1,14 @@
+<!doctype html>
+<title>Overflow still allows contenteditable elements to have height</title>
+<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
+<link rel="author" title="Mozilla" href="https://mozilla.org">
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1681375">
+<link rel="match" href="contenteditable-overflow-height-ref.html">
+<style>
+  [contenteditable] {
+    outline: 1px solid black;
+    outline-offset: -1px;
+    overflow: hidden;
+  }
+</style>
+<div contenteditable></div>