summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/inline-with-offset-from-containing-block-ref.html
blob: 4a66af4ece26abd69a41840319783f86001746d0 (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
<!DOCTYPE html>
<html>
<title>View transitions: inline with offset from containing block (ref)</title>
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-1/">
<link rel="author" href="mailto:khushalsagar@chromium.org">

<style>
  .outer {
    transform: scale(2);
    width: 100vw;
    text-align: center;
  }
  .inner {
    transform: translate(10px);
    padding: 10px;
    border: 10px solid black;
  }
  body {
    background: pink;
  }
</style>

<div class="outer">
  <a class="inner">Some text</a>
</div>