mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
Update web-platform-tests to revision 192193581b6912818a0e3f2408f40f033a451a79
This commit is contained in:
parent
2cf9a00c99
commit
13bbfdb3eb
46 changed files with 1499 additions and 144 deletions
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Overflow and Transforms: css-overflow-3</title>
|
||||
<link rel="author" title="mailto:atotic@google.com">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-overflow-3/#scrollable">
|
||||
<meta name="assert" content="css transform is used to compute scroll overflow of abspos children">
|
||||
<style>
|
||||
#container {
|
||||
position: relative;
|
||||
overflow: auto;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
#target {
|
||||
position: absolute;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
margin-left: 100px;
|
||||
transform: translateX(-100px);
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
<!-- There should be no scrollbars on this page -->
|
||||
<div id="container">
|
||||
<div id="target"></div>
|
||||
</div>
|
||||
<script>
|
||||
test(() => {
|
||||
assert_equals(document.querySelector("#container").scrollWidth, 200);
|
||||
}, '#target used transform when computing scroll overflow');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue