blob: b2f63928e4010a78f2b7a77484122f876b3c2795 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<!DOCTYPE html>
<html>
<title>Shared transitions: different width container should keep aspect ratio (by default)</title>
<link rel="help" href="https://github.com/WICG/view-transitions">
<link rel="author" href="mailto:vmpstr@chromium.org">
<style>
.spacer {
/* 10px - border from above and below */
height: 6px;
}
.smallbox {
width: 50px;
height: 50px;
background: blue;
}
.bigbox {
width: 200px;
height: 200px;
background: blue;
}
body { background: lightpink; }
</style>
<div style="width: 50px; height: 100px; border: 2px solid black">
<div style="height: 50px; background: blue"></div>
</div>
<div class=spacer></div>
<div style="width: 200px; height: 100px; border: 2px solid black">
<div style="height: 200px; background: blue"></div>
</div>
|