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
23 lines
816 B
HTML
23 lines
816 B
HTML
<!DOCTYPE html>
|
|
<title>Author-level CSS padding should apply to buttons 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>
|
|
<button id="btn"></button>
|
|
<script>
|
|
test(() => {
|
|
let value = "10px";
|
|
btn.style.paddingLeft = value;
|
|
assert_equals(window.getComputedStyle(btn).paddingLeft, value);
|
|
btn.style.paddingTop = value;
|
|
assert_equals(window.getComputedStyle(btn).paddingTop, value);
|
|
btn.style.paddingRight = value;
|
|
assert_equals(window.getComputedStyle(btn).paddingRight, value);
|
|
btn.style.paddingBottom = value;
|
|
assert_equals(window.getComputedStyle(btn).paddingBottom, value);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|