mirror of
https://github.com/servo/servo
synced 2026-04-28 18:37:39 +02:00
31 lines
1.3 KiB
HTML
31 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html><head>
|
|
<title>CSS Test (Transforms): scale(-1) on Root Element With Background</title>
|
|
<link href="mailto:ayg@aryeh.name" rel="author" title="Aryeh Gregor">
|
|
<link href="http://www.w3.org/TR/css-transforms-1/#transform-rendering" rel="help">
|
|
<meta content="The background here extends to the whole
|
|
canvas, and a transform on the root element must transform the whole
|
|
canvas, background included. Thus the entire tiled background of
|
|
left-pointing triangles needs to be rotated 180 degrees (same as scale(-1))
|
|
around the top center of the viewport, which is the default
|
|
transform-origin of 50% 50% in this case. An implementation that doesn't
|
|
draw the background on parts of the canvas outside the viewport might
|
|
incorrectly display nothing, because the part of the background that's
|
|
supposed to be rotated into view was initially above the visible part of
|
|
the canvas." name="assert">
|
|
<link href="reference/transform-root-bg-001-ref.htm" rel="match">
|
|
<style>
|
|
html {
|
|
background: url(support/transform-triangle-left.svg);
|
|
transform: scale(-1);
|
|
}
|
|
body {
|
|
/* The default 8px margin makes the background not line up exactly */
|
|
margin: 0;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
</body></html> |