diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/css/css-overflow/scrollable-overflow-textarea.html | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/css-overflow/scrollable-overflow-textarea.html')
-rw-r--r-- | testing/web-platform/tests/css/css-overflow/scrollable-overflow-textarea.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-overflow/scrollable-overflow-textarea.html b/testing/web-platform/tests/css/css-overflow/scrollable-overflow-textarea.html new file mode 100644 index 0000000000..2be500bc8b --- /dev/null +++ b/testing/web-platform/tests/css/css-overflow/scrollable-overflow-textarea.html @@ -0,0 +1,36 @@ +<!DOCTYPE html> +<html> + <meta charset="utf-8"> + <title>CSS Overflow Test: Test padding in included in the texarea's scrollable overflow area</title> + <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> + <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> + <link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scrollable"> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1527949"> + <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1696885"> + <link rel="stylesheet" href="/fonts/ahem.css"> + + <script src="/resources/testharness.js"></script> + <script src="/resources/testharnessreport.js"></script> + <script src="/resources/check-layout-th.js"></script> + + <style> + textarea { + width: 100px; + height: 50px; + padding: 11px 13px 17px 19px; + font: 20px/1 Ahem; + background: yellow content-box; + border: 0; + outline: 1px solid blue; + overflow: hidden; + } + </style> + + <body onload="checkLayout('#textarea')"> + <!-- Expected scroll width 132px = + width:100px + padding-left:19px + padding-right:13px. + Expected scroll height 128px = + 5 lines of 20px height + padding-top:11px + padding-bottom:17px --> + <textarea id="textarea" data-expected-scroll-width="132" data-expected-scroll-height="128">XXXXX XXXXX XXXXX XXXXX XXXXX</textarea> + </body> +</html> |