author | Cathie Chen <cathiechen@igalia.com> |
Mon, 14 Oct 2019 13:39:59 +0000 | |
changeset 498149 | 65016d3b9885fe7e43f4035837c73071e40e548b |
parent 498148 | ae5c60e71f94f2de3a7ad55e982c8e2c7e8fd08b |
child 498150 | be5728d38c51dee3ab5dc848b20313c6d49c5bbe |
push id | 36707 |
push user | aciure@mozilla.com |
push date | Fri, 18 Oct 2019 16:03:50 +0000 |
treeherder | mozilla-central@25c4c2685699 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1587024, 19566, 987566, 1840492, 703662 |
milestone | 71.0a1 |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
testing/web-platform/tests/css/cssom-view/scrollLeft-of-scroller-with-wider-scrollbar.html | file | annotate | diff | comparison | revisions |
new file mode 100644 --- /dev/null +++ b/testing/web-platform/tests/css/cssom-view/scrollLeft-of-scroller-with-wider-scrollbar.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<title>The maximum value of scrollLeft shouldn't be affected by scrollbar when it's wider than scroller</title> +<meta charset="utf-8"> +<link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-scrollleft"> + +<div id="scroller" style="overflow: scroll; width: 5px;height: 300px;"> + <div style="width:100px; height: 1px"></div> +</div> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script> + test(function() { + scroller.scrollLeft = 1000; + assert_equals(scroller.scrollLeft, 100); + }, "Test the maxium value of scrollLeft"); +</script>