mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
17 lines
420 B
HTML
17 lines
420 B
HTML
<!doctype html>
|
|
<link rel="match" href="reference/transform-calc-length-percentage-ref.html" /><style>
|
|
* { outline: 1px solid black; }
|
|
html { background: white; }
|
|
body {
|
|
background: pink;
|
|
padding: 32px;
|
|
width: 200px;
|
|
}
|
|
div {
|
|
background: orange;
|
|
transform: translate(calc(-50% - 1px), -50%);
|
|
width: 50px;
|
|
height: 50px;
|
|
}
|
|
</style><body><div>
|