Files
sousa-gecko/testing/web-platform/tests/css/css-ui/select-author-level-padding-applies.html
T
lilyspiniolas 2f1ad6e509 Bug 1975380 [wpt PR 53559] - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=295355, a=testonly
Automatic update from web-platform-tests
WebKit export of https://bugs.webkit.org/show_bug.cgi?id=295355 (#53559)

--

wpt-commits: a7400ee7beea87d3a95113ff815a3b1e2f97009f
wpt-pr: 53559
2025-07-18 08:17:45 +00:00

23 lines
851 B
HTML

<!DOCTYPE html>
<title>Author-level CSS padding should apply to select controls with native appearance</title>
<link rel="help" href="https://drafts.csswg.org/css-ui-4/#appearance-switching">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<body>
<select id="select"></select>
<script>
test(() => {
let value = "10px";
select.style.paddingLeft = value;
assert_equals(window.getComputedStyle(select).paddingLeft, value);
select.style.paddingTop = value;
assert_equals(window.getComputedStyle(select).paddingTop, value);
select.style.paddingRight = value;
assert_equals(window.getComputedStyle(select).paddingRight, value);
select.style.paddingBottom = value;
assert_equals(window.getComputedStyle(select).paddingBottom, value);
});
</script>
</body>
</html>