1
0
Fork 0
firefox/testing/web-platform/tests/css/cssom/resolved-border-width.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

19 lines
835 B
HTML

<!doctype html>
<meta charset="utf-8">
<link rel="help" href="https://drafts.csswg.org/cssom-1/#resolved-values">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<title>border-*-width returns computed rather than used values from getComputedStyle()</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<input type=checkbox style="border: 5px solid red">
<input type=radio style="border: 5px solid red">
<script>
for (let input of document.querySelectorAll("input")) {
test(() => {
let cs = getComputedStyle(input);
for (let prop of ["border-width", "border-top-width", "border-right-width", "border-bottom-width", "border-left-width"]) {
assert_equals(cs.getPropertyValue(prop), "5px", prop);
}
}, input.type);
}
</script>