diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-view-transitions/intrinsic-aspect-ratio-ref.html')
-rw-r--r-- | testing/web-platform/tests/css/css-view-transitions/intrinsic-aspect-ratio-ref.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-view-transitions/intrinsic-aspect-ratio-ref.html b/testing/web-platform/tests/css/css-view-transitions/intrinsic-aspect-ratio-ref.html new file mode 100644 index 0000000000..b2f63928e4 --- /dev/null +++ b/testing/web-platform/tests/css/css-view-transitions/intrinsic-aspect-ratio-ref.html @@ -0,0 +1,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> |