1
0
Fork 0
firefox/testing/web-platform/tests/css/css-values/viewport-units-modify.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
617 B
HTML

<!DOCTYPE html>
<title>Crash when going from non-viewport to viewport units</title>
<link rel="help" href="https://crbug.com/1322613">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="elem" style="padding-left: 1vh">Test passes if there is no crash.</div>
<script>
test((t) => {
assert_not_equals(getComputedStyle(elem).paddingLeft, '0px');
elem.style.paddingLeft = '0';
assert_equals(getComputedStyle(elem).paddingLeft, '0px');
elem.style.paddingLeft = '1vh';
assert_not_equals(getComputedStyle(elem).paddingLeft, '0px');
});
</script>