Automatic update from web-platform-tests Parse scroll-axis-lock property This implements the parsing of the scroll-axis-lock[1] property which takes 'auto' and 'none' as keywords. [1] https://github.com/w3c/csswg-drafts/issues/13207#issuecomment-3808193000 Bug: 479472367 Change-Id: Ie520339487027dafd4ff8754d93731a54ed55fc8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7841432 Reviewed-by: Mustaq Ahmed <mustaq@chromium.org> Commit-Queue: David A <awogbemila@chromium.org> Cr-Commit-Position: refs/heads/main@{#1633619} -- wpt-commits: ff3dd2c64b3c94d5a331c3e335165c3bbd0ece9f wpt-pr: 59985
28 lines
1.2 KiB
HTML
28 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Overflow: parsing scroll-axis-lock property computed values</title>
|
|
<link rel="help" href="https://drafts.csswg.org/css-overflow-5/#scroll-axis-lock">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/css/support/computed-testcommon.js"></script>
|
|
<div id="target"></div>
|
|
<script>
|
|
test_computed_value('scroll-axis-lock', 'initial', 'auto');
|
|
test_computed_value('scroll-axis-lock', 'inherit', 'auto');
|
|
test_computed_value('scroll-axis-lock', 'unset', 'auto');
|
|
test_computed_value('scroll-axis-lock', 'revert', 'auto');
|
|
|
|
test_computed_value('scroll-axis-lock', 'auto');
|
|
test_computed_value('scroll-axis-lock', 'none');
|
|
|
|
test(() => {
|
|
let style = getComputedStyle(document.getElementById('target'));
|
|
assert_not_equals(Array.from(style).indexOf('scroll-axis-lock'), -1);
|
|
}, 'The scroll-axis-lock property shows up in CSSStyleDeclaration enumeration');
|
|
|
|
test(() => {
|
|
let style = document.getElementById('target').style;
|
|
assert_not_equals(style.cssText.indexOf('scroll-axis-lock'), -1);
|
|
}, 'The scroll-axis-lock property shows up in CSSStyleDeclaration.cssText');
|
|
</script>
|