File: individual-transform-1.html

package info (click to toggle)
thunderbird 1%3A143.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 4,703,968 kB
  • sloc: cpp: 7,770,492; javascript: 5,943,842; ansic: 3,918,754; python: 1,418,263; xml: 653,354; asm: 474,045; java: 183,079; sh: 111,238; makefile: 20,410; perl: 14,359; objc: 13,059; yacc: 4,583; pascal: 3,405; lex: 1,720; ruby: 999; exp: 762; sql: 715; awk: 580; php: 436; lisp: 430; sed: 69; csh: 10
file content (100 lines) | stat: -rw-r--r-- 2,769 bytes parent folder | download | duplicates (23)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>Individual transform: compare individual transform with transform functions</title>
    <link rel="author" title="CJ Ku" href="mailto:cku@mozilla.com">
    <link rel="author" title="Mozilla" href="https://www.mozilla.org">
    <link rel="help" href="https://drafts.csswg.org/css-transforms-2/#individual-transforms">
    <meta name="assert" content="Tests whether individual transforms work correctly by comparing the rendering result with transform functions of the 'transform' property."/>
    <link rel="match" href="individual-transform-1-ref.html">
    <style>
      div {
        position: fixed;
        width: 100px;
        height: 100px;
        transform-origin: 0 0;
        border-style: solid;
        border-width: 10px 0px 10px 0px;
        border-color: lime;
      }
      .row_1 {
        top: 100px;
      }
      .scale_1{
        left: 100px;
        width: 50px;
        height: 100px;
        /* test 'scale: <number>' */
        scale: 2;
      }
      .translate_1 {
        left: 150px;
        /* test 'translate: <length-percentage>' */
        translate: 150px;
      }
      .rotate_1 {
        left: 450px;
        transform-origin: 50% 50%;
        /* test 'rotate: <angle>' */
        rotate: 90deg;
      }

      .row_2 {
        top: 250px;
      }
      .scale_2{
        left: 100px;
        width: 50px;
        height: 50px;
        /* test 'scale: <number>{2}'' */
        scale: 2 2;
      }
      .translate_2 {
        left: 150px;
        top: 200px;
        /* test 'translate: <length-percentage><length-percentage>' */
        translate: 150px 50px;
      }
      .rotate_2 {
        left: 450px;
        transform-origin: 50% 50%;
        /* test 'rotate: axis <angle>'*/
        rotate: x 45deg;
      }
      .row_3 {
        transform: perspective(500px);
        top: 400px;
      }
      .scale_3{
        left: 100px;
        width: 50px;
        height: 50px;
        /* test 'scale: <number>{3}'' */
        scale: 2 2 2;
      }
      .translate_3 {
        left: 150px;
        /* test 'translate: <length-percentage><length>' */
        translate: 150px 10px 10px;
      }
      .rotate_3 {
        left: 450px;
        transform-origin: 50% 50%;
        /* test 'rotate: <number>{3}<angle>'*/
        rotate: 0 1 0 45deg;
      }
    </style>
  </head>
  <body>
    <div class="scale_1 row_1"></div>
    <div class="translate_1 row_1"></div>
    <div class="rotate_1 row_1"></div>
    <div class="scale_2 row_2"></div>
    <div class="translate_2 row_2"></div>
    <div class="rotate_2 row_2"></div>
    <div class="scale_3 row_3"></div>
    <div class="translate_3 row_3"></div>
    <div class="rotate_3 row_3"></div>
  </body>
</html>