mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Update web-platform-tests to revision b'eed89e3016c6fd9de02af8a9dcb06933244c54f9'
This commit is contained in:
parent
4f381683ba
commit
f1afee3fc8
157 changed files with 3703 additions and 1428 deletions
|
@ -0,0 +1,31 @@
|
|||
<!DOCTYPE html>
|
||||
<title>View transitions: scroller element (ref)</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
|
||||
<link rel="author" href="mailto:vmpstr@chromium.org">
|
||||
|
||||
<style>
|
||||
#scroller {
|
||||
overflow: scroll;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: blue;
|
||||
contain: layout;
|
||||
}
|
||||
|
||||
#child {
|
||||
position: relative;
|
||||
width: 1000px;
|
||||
height: 1000px;
|
||||
background: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="scroller">
|
||||
<div id="child"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
onload = () => { scroller.scrollTop = 300; };
|
||||
</script>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue