mirror of
https://github.com/servo/servo.git
synced 2025-07-29 18:20:24 +01:00
27 lines
581 B
HTML
27 lines
581 B
HTML
<!DOCTYPE html>
|
|
<title>View transitions: capture elements and then change overflow (ref)</title>
|
|
<link rel="help" href="https://github.com/WICG/view-transitions">
|
|
<link rel="author" href="mailto:vmpstr@chromium.org">
|
|
<style>
|
|
body { background: pink }
|
|
#target {
|
|
position: relative;
|
|
background: green;
|
|
width: 100px;
|
|
height: 100px;
|
|
view-transition-name: target;
|
|
}
|
|
#child {
|
|
background: blue;
|
|
position: relative;
|
|
top: 20px;
|
|
left: 30px;
|
|
width: 50px;
|
|
height: 100px;
|
|
}
|
|
#child.large {
|
|
height: 200px;
|
|
}
|
|
</style>
|
|
|
|
<div id=target><div id=child class=large></div></div>
|