summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-view-transitions/fractional-translation-from-transform-ref.html
blob: 0721fca5787c73cd7f9f5e59a76bf1d311b08a12 (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
<!DOCTYPE html>
<html>
<title>View transitions: fractional translation from CSS transform (ref)</title>
<link rel="help" href="https://www.w3.org/TR/css-view-transitions-1/">
<link rel="author" href="mailto:khushalsagar@chromium.org">
<style>
body {
  width: 100vw;
  height: 100vh;
  background: grey;
}

#target {
  width: 100px;
  height: 100px;
  position: fixed;
  top: 0px;
  left: 0px;
  transform: translate(100.52px, 100.37px);

  view-transition-name: target;
  contain: layout;
  will-change: transform;
}
</style>

<div id=target>
  Here is some text which should not be blurry.
</div>