summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-transforms/transform-root-bg-001.html
blob: e3d7ff3807ea42e72b8b99ea1db73fc69a728d85 (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
<!DOCTYPE html>
<html>
  <head>
    <title>CSS Test (Transforms): scale(-1) on Root Element With Background</title>
    <link rel="author" title="Aryeh Gregor" href="mailto:ayg@aryeh.name">
    <link rel="help" href="http://www.w3.org/TR/css-transforms-1/#transform-rendering">
    <meta name="assert" content="The background here extends to the whole
    canvas, and a transform on the root element should not transform the
    canvas background. Thus the entire tiled background of left-pointing triangles
    should not be rotated. An implementation that doesn't draw the background
    correctly may rotate the background, or incorrectly clip it.">
    <link rel="match" href="transform-root-bg-001-ref.html">
    <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>