mirror of
https://github.com/servo/servo.git
synced 2025-07-31 03:00:29 +01:00
29 lines
598 B
HTML
29 lines
598 B
HTML
<!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>
|