diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:47:29 +0000 |
commit | 0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /testing/web-platform/tests/css/cssom-view/client-props-input.html | |
parent | Initial commit. (diff) | |
download | firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/css/cssom-view/client-props-input.html')
-rw-r--r-- | testing/web-platform/tests/css/cssom-view/client-props-input.html | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/cssom-view/client-props-input.html b/testing/web-platform/tests/css/cssom-view/client-props-input.html new file mode 100644 index 0000000000..d092267d3c --- /dev/null +++ b/testing/web-platform/tests/css/cssom-view/client-props-input.html @@ -0,0 +1,36 @@ +<!doctype html> +<title>client* on input / textarea</title> +<link rel="help" href="https://drafts.csswg.org/cssom-view/#extension-to-the-element-interface"> +<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1654769"> +<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> +<link rel="author" title="Mozilla" href="https://mozilla.org"> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<style> + input, textarea { + -webkit-appearance: none; + appearance: none; + height: 200px; + width: 300px; + border-style: solid; + border-width: 10px 20px; + padding: 2px; + box-sizing: content-box; + } + .block { display: block; } +</style> +<input> +<textarea></textarea> +<input class="block"> +<textarea class="block"></textarea> +<script> +test(() => { + for (let element of document.querySelectorAll("input, textarea")) { + let description = `${element.nodeName} ${element.className}: `; + assert_equals(element.clientWidth, 304, description + "clientWidth should be the padding box"); + assert_equals(element.clientHeight, 204, description + "clientHeight should be the padding box"); + assert_equals(element.clientTop, 10, description + "clientTop should include the border offset"); + assert_equals(element.clientLeft, 20, description + "clientLeft should include the border offset"); + } +}, "client* on input / textarea"); +</script> |