summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/intrinsic-aspect-ratio-ref.html
blob: 02d9cfeb8e6ac21efe244507d3971165c15b4668 (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>View transitions: different width container should keep aspect ratio (by default)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<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>