File: 0004-Fix-html-file.patch

package info (click to toggle)
node-normalize.css 8.0.1-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 284 kB
  • sloc: makefile: 10
file content (271 lines) | stat: -rw-r--r-- 10,432 bytes parent folder | download | duplicates (3)
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
From 9922c9aaec83747b2d6313be51a05974f2429bb9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Tue, 15 May 2018 00:16:28 +0200
Subject: Fix html file

Fowarwarde: not needed
---
 test.html | 99 ++++++++++++++++++++++++++++---------------------------
 1 file changed, 51 insertions(+), 48 deletions(-)

diff --git a/test.html b/test.html
index 4d7f3e2..450d217 100644
--- a/test.html
+++ b/test.html
@@ -1,11 +1,12 @@
 <!DOCTYPE html>
-<html lang="en">
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width,initial-scale=1">
+<html lang="en" dir="ltr">
+<head>
+<meta name="viewport" content="width=device-width,initial-scale=1" />
 <title>Normalize CSS: UI tests</title>
-<script src="../../../javascript/html5shiv/html5shiv.min.js"></script>
-<link rel="stylesheet" href="normalize.css">
-<style>
+<script src="../../../javascript/html5shiv/html5shiv.min.js" type="javascript"></script>
+<script src="file:///usr/share/javascript/html5shiv/html5shiv.min.js" type="javascript"></script>
+<link rel="stylesheet" href="normalize.css" />
+<style type="text/css">
   /*! suit-test v0.1.0 | MIT License | github.com/suitcss */
 
   .Test {
@@ -79,7 +80,8 @@
     outline: 1px solid #ADD8E6;
   }
 </style>
-
+</head>
+<body>
 <div class="Test">
   .
 
@@ -139,9 +141,8 @@
     <audio>audio</audio>
     <template>
       <h1>{{title}}</h1>
-      <content></content>
     </template>
-    <p hidden>This should be hidden</p>
+    <p hidden="hidden">This should be hidden</p>
   </div>
 
   <h2 class="Test-describe"><code>a</code></h2>
@@ -218,14 +219,14 @@
   <div class="Test-run">
     <a href="#non">
       <!-- scaled-up 1px image -->
-      <img style="background-color:#ADD8E6" src="" width="100" height="100" id="onepixel1">
+      <img style="background-color:#ADD8E6" src="overwritenbyjs.png" width="100" height="100" id="onepixel1" />
     </a>
   </div>
 
   <h2 class="Test-describe"><code>svg</code></h2>
   <h3 class="Test-it">should not overflow</h3>
   <div class="Test-run Test-run--highlightEl">
-    <svg width="100px" height="100px">
+    <svg width="100" height="100">
       <circle cx="100" cy="100" r="100" fill="#ADD8E6" />
     </svg>
   </div>
@@ -233,9 +234,9 @@
   <h2 class="Test-describe"><code>code</code>, <code>kbd</code>, <code>pre</code>, <code>samp</code></h2>
   <h3 class="Test-it">should render text at the same absolute size as normal text</h3>
   <div class="Test-run">
-    <span>span: abcdefghijklmnopqrstuvwxyz.</span><br>
-    <code>code: abcdefghijklmnopqrstuvwxyz.</code><br>
-    <kbd>kbd: abcdefghijklmnopqrstuvwxyz.</kbd><br>
+    <span>span: abcdefghijklmnopqrstuvwxyz.</span><br />
+    <code>code: abcdefghijklmnopqrstuvwxyz.</code><br />
+    <kbd>kbd: abcdefghijklmnopqrstuvwxyz.</kbd><br />
     <samp>samp: abcdefghijklmnopqrstuvwxyz.</samp>
     <pre>pre: abcdefghijklmnopqrstuvwxyz.</pre>
   </div>
@@ -244,32 +245,32 @@
   <h3 class="Test-it">should have margins</h3>
   <div class="Test-run" style="outline:1px solid #ADD8E6; overflow:hidden;">
     <figure>
-      <img style="background-color:#ADD8E6" src="" width="400" height="200" id="onepixel2">
+      <img style="background-color:#ADD8E6" src="overwrittenbyjs.png" width="400" height="200" id="onepixel2" />
     </figure>
   </div>
 
   <h2 class="Test-describe"><code>hr</code></h2>
   <h3 class="Test-it">should have a <code>content-box</code> box model</h3>
   <div class="Test-run" style="">
-    <hr style="height:2px; border:solid #ADD8E6; border-width:2px 0;">
+    <hr style="height:2px; border:solid #ADD8E6; border-width:2px 0;" />
   </div>
 
   <h2 class="Test-describe"><code>button</code>, <code>input</code>, <code>optgroup</code>, <code>select</code>, <code>textarea</code></h2>
   <h3 class="Test-it">should inherit <code>font-size</code> from ancestor</h3>
   <div class="Test-run" style="font-size: 20px;">
-    <button>button</button><br>
-    <input value="input"><br>
+    <button>button</button><br />
+    <input value="input" /><br />
     <select style="border:1px solid #999;">
       <optgroup label="optgroup">
         <option>option</option>
       </optgroup>
       <option>option</option>
-    </select><br>
-    <textarea>textarea</textarea>
+    </select><br />
+    <textarea cols="30" rows="5">textarea</textarea>
   </div>
   <h3 class="Test-it">should not have margins</h3>
   <div class="Test-run" id="form-collection-margins">
-    <style>
+    <style type="text/css">
       #form-collection-margins {
         outline: 1px solid #ADD8E6;
         overflow: hidden;
@@ -283,20 +284,20 @@
       }
     </style>
     <button>button</button>
-    <input value="input">
+    <input value="input" />
     <select style="border:1px solid #999;">
       <optgroup label="optgroup">
         <option>option</option>
       </optgroup>
       <option>option</option>
     </select>
-    <textarea>textarea</textarea>
+    <textarea cols="30" rows="5">textarea</textarea>
   </div>
 
   <h2 class="Test-describe"><code>button</code></h2>
   <h3 class="Test-it">should have visible overflow</h3>
   <div class="Test-run" id="button-overflow">
-    <style>
+    <style type="text/css">
       #button-overflow button:after {
         content: "";
         background: #ADD8E6;
@@ -320,7 +321,7 @@
   <h2 class="Test-describe"><code>button</code> and button-style <code>input</code></h2>
   <h3 class="Test-it">should be styleable</h3>
   <div class="Test-run" id="button-like-style">
-    <style>
+    <style type="text/css">
       #button-like-style button,
       #button-like-style input {
         background: #ADD8E6;
@@ -330,26 +331,26 @@
       }
     </style>
     <p><button>button</button></p>
-    <p><input type="image" src="test.svg" alt="input (image)"></p>
-    <p><input type="button" value="input (button)"></p>
-    <p><input type="file" value="input (file)"></p>
-    <p><input type="reset" value="input (reset)"></p>
-    <p><input type="submit" value="input (submit)"></p>
+    <p><input type="image" src="test.svg" alt="input (image)" /></p>
+    <p><input type="button" value="input (button)" /></p>
+    <p><input type="file" value="input (file)" /></p>
+    <p><input type="reset" value="input (reset)" /></p>
+    <p><input type="submit" value="input (submit)" /></p>
   </div>
 
   <h2 class="Test-describe">disabled <code>button</code> and <code>input</code></h2>
   <h3 class="Test-it">should have <code>default</code> cursor style</h3>
   <div class="Test-run">
-    <p><button disabled>button</button></p>
-    <p><input disabled type="button" value="input (button)"></p>
-    <p><input disabled type="reset" value="input (reset)"></p>
-    <p><input disabled type="submit" value="input (submit)"></p>
+    <p><button disabled="disabled">button</button></p>
+    <p><input disabled="disabled" type="button" value="input (button)" /></p>
+    <p><input disabled="disabled" type="reset" value="input (reset)" /></p>
+    <p><input disabled="disabled" type="submit" value="input (submit)" /></p>
   </div>
 
   <h2 class="Test-describe"><code>button</code>, <code>input</code></h2>
   <h3 class="Test-it">should not have extra inner padding in Firefox</h3>
   <div class="Test-run" id="button-input-padding">
-    <style>
+    <style type="text/css">
       #button-input-padding button,
       #button-input-padding input {
         border: 0;
@@ -358,9 +359,9 @@
       }
     </style>
     <p><button>button</button></p>
-    <p><input type="button" value="input (button)"></p>
-    <p><input type="reset" value="input (reset)"></p>
-    <p><input type="submit" value="input (submit)"></p>
+    <p><input type="button" value="input (button)" /></p>
+    <p><input type="reset" value="input (reset)" /></p>
+    <p><input type="submit" value="input (submit)" /></p>
   </div>
 
   <h2 class="Test-describe"><code>fieldset</code></h2>
@@ -394,13 +395,13 @@
   <h2 class="Test-describe"><code>textarea</code></h2>
   <h3 class="Test-it">should not have a scrollbar unless overflowing</h3>
   <div class="Test-run">
-    <textarea>textarea</textarea>
+    <textarea cols="30" rows="5">textarea</textarea>
   </div>
 
   <h2 class="Test-describe"><code>[type="checkbox"]</code>, <code>[type="radio"]</code></h2>
   <h3 class="Test-it">should have a <code>border-box</code> box model</h3>
   <div class="Test-run Test-run--highlightEl" id="radio-box-model">
-    <style>
+    <style type="text/css">
       #radio-box-model {
         width: 200px;
         border: 1px solid red;
@@ -413,33 +414,33 @@
         position: relative;
       }
     </style>
-    <input type="checkbox">
-    <input type="radio" name="rad">
+    <input type="checkbox" />
+    <input type="radio" name="rad" />
   </div>
   <h3 class="Test-it">should not have padding</h3>
   <div class="Test-run Test-run--highlightEl">
-    <input type="checkbox">
-    <input type="radio" name="rad">
+    <input type="checkbox" />
+    <input type="radio" name="rad" />
   </div>
 
   <h2 class="Test-describe"><code>[type="number"]</code></h2>
   <h3 class="Test-it">should display a default cursor for the decrement button's click target in Chrome</h3>
   <div class="Test-run">
-    <input style="height:50px; font-size:15px;" type="number" id="in" min="0" max="10" value="5">
+    <input style="height:50px; font-size:15px;" type="number" id="in" min="0" max="10" value="5" />
   </div>
 
   <h2 class="Test-describe"><code>[type="search"]</code></h2>
   <h3 class="Test-it">should be styleable</h3>
   <div class="Test-run">
-    <input type="search" style="border:1px solid #ADD8E6; padding:10px; width:200px;">
+    <input type="search" style="border:1px solid #ADD8E6; padding:10px; width:200px;" />
   </div>
   <h3 class="Test-it">should reference inherited color</h3>
   <div class="Test-run">
-    <input type="text" placeholder="Text goes here" style="background-color: black; color: orange;">
+    <input type="text" placeholder="Text goes here" style="background-color: black; color: orange;" />
   </div>
 
 </div>
-<script>
+<script type="javascript">
     var canvas = document.createElement('canvas');
     if (!canvas.getContext) G_vmlCanvasManager.initElement(canvas);
 
@@ -454,3 +455,5 @@
     document.getElementById("onepixel1").setAttribute("src",createPixel(255,0,0,0));
     document.getElementById("onepixel2").setAttribute("src",createPixel(255,0,0,0));
 </script>
+</body>
+</html>