Automatic update from web-platform-tests Add WPT test Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> -- Apply suggestion Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> -- Apply tidy and wpt suggestion Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> -- Revert test 9 Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> -- Add reference to overflow test Signed-off-by: stevennovaryo <steven.novaryo@gmail.com> -- wpt-commits: 3643d95455e6dff16eb70eaa7481ad5f4f619405, a9ba4aca97c9794b3ac5e55dc2f9ca270cf3c997, b3c0d005b32829ad0cca3abcde94413845808707, 962ae29296d2a1438cce218101e5585c767f42fc, 0704607c980377de9ac9520e001a25638298c0ef wpt-pr: 51595 Differential Revision: https://phabricator.services.mozilla.com/D247989
47 lines
1.3 KiB
HTML
47 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<meta charset="utf-8">
|
|
<title>CSS Overflow: Scrollable Overflow Transform Scale</title>
|
|
<link rel="author" title="Jo Steven Novaryo" href="mailto:steven.novaryo@gmail.com">
|
|
<link rel="help" href="https://drafts.csswg.org/css-overflow-3/#scrollable" />
|
|
<meta name="assert" content="Checks that the bounding rectangle of scaled element is included correctly in scrollable overflow.">
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="/resources/check-layout-th.js"></script>
|
|
<style>
|
|
.container {
|
|
width: 100px;
|
|
height: 100px;
|
|
overflow: scroll;
|
|
background: silver;
|
|
border: solid thick;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
.element {
|
|
width: 200px;
|
|
height: 200px;
|
|
background: lime;
|
|
}
|
|
|
|
.element-2 {
|
|
width: 200px;
|
|
height: 200px;
|
|
background: aqua;
|
|
}
|
|
</style>
|
|
<body onload="checkLayout('.container')">
|
|
|
|
<div class="container" data-expected-scroll-width="300" data-expected-scroll-height="300">
|
|
<div style="transform: scale(2);" class="element">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container" data-expected-scroll-height="250" data-expected-scroll-height="250">
|
|
<div style="transform: scale(0.5);" class="element">
|
|
<div style="transform: scale(3);" class="element-2">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|