summaryrefslogtreecommitdiff
path: root/Tests/LibWeb/Layout/input/svg-preserve-aspect-ratio.html
blob: f558a14c2996becb2fb1f38153fa3f681f679099 (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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<style>
  * {
    font-family: 'SerenitySans';
  }
  svg {
    border: 1px solid black;
  }
</style>
<svg
  viewBox="0 0 100 100"
  width="100"
  height="50"
  preserveAspectRatio="xMidYMid meet"
  x="0"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="100"
  height="50"
  preserveAspectRatio="xMinYMid meet"
  x="25"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="100"
  height="50"
  preserveAspectRatio="xMaxYMid meet"
  x="50"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="100"
  height="50"
  preserveAspectRatio="xMidYMin slice"
  x="0"
  y="15">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="100"
  height="50"
  preserveAspectRatio="xMidYMid slice"
  x="25"
  y="15">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="100"
  height="50"
  preserveAspectRatio="xMidYMax slice"
  x="50"
  y="15">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="50"
  height="125"
  preserveAspectRatio="xMidYMin meet"
  x="75"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="50"
  height="125"
  preserveAspectRatio="xMidYMid meet"
  x="90"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="50"
  height="125"
  preserveAspectRatio="xMidYMax meet"
  x="105"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="50"
  height="125"
  preserveAspectRatio="xMinYMid slice"
  x="120"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="50"
  height="125"
  preserveAspectRatio="xMidYMid slice"
  x="135"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="50"
  height="125"
  preserveAspectRatio="xMaxYMid slice"
  x="150"
  y="0">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>
<svg
  viewBox="0 0 100 100"
  width="160"
  height="60"
  preserveAspectRatio="none"
  x="0"
  y="30">
  <circle cx="50" cy="50" r="50" fill="red" />
</svg>