text-transform-fullwidth-001

text-transform - fullwidth - basic cases

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
The UA should transform halfwidth character to fullwidth character when text-transform is set to fullwidth.

Source

  1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2 <html>
  3 	<head>
  4 		<title>CSS Test: text-transform - fullwidth - basic cases</title>
  5 		<link rel="author" title="Satoshi Umehara" href="mailto:umehara@est.co.jp">
  6 		<link rel="reviewer" title="Koji Ishii" href="mailto:kojiishi@gluesoft.co.jp">
  7 		<link rel="help" title="CSS Text Level 3: 3.1. Transforming Text: the ‘text-transform’ property" href="http://www.w3.org/TR/css-text-3/#text-transform">
  8 		<link rel="match" href="reference/text-transform-fullwidth-001-ref.htm">
  9 		<meta name="flags" content="">
 10 		<meta name="assert" content="The UA should transform halfwidth character to fullwidth character when text-transform is set to fullwidth.">
 11 		<style type="text/css">
 12 			
 13 				.test span {
 14 					text-transform: full-width;
 15 				}
 16 				/* the CSS below is not part of the test */
 17 				span {
 18 					background-color: cyan;
 19 				}
 20 				.test {
 21 					color: Blue;
 22 					font-size: 200%;
 23 					line-height: 1.2em;
 24 				}
 25 				.test div {
 26 					display: inline-block;
 27 					margin-bottom: 1em;
 28 					margin-top: 1em;
 29 					text-align: center;
 30 					white-space: nowrap;
 31 					width: 5em;
 32 				}
 33 			
 34 		</style>
 35 		<script type="text/javascript">
 36 			//	
 37 					// Set Font Family to 'IPAMincho'
 38 					function setFontFamily () {
 39 						var fontName = 'IPAMincho';
 40 						var divs = document.getElementsByTagName('div');
 41 						var i = 0;
 42 						var div;
 43 						while (i < divs.length) {
 44 							div = divs.item(i);
 45 							if (div.className == 'test') {
 46 								div.style.fontFamily = fontName;
 47 							}
 48 							i++;
 49 						}
 50 					}
 51 			//	
 52 		</script>
 53 	</head>
 54 	<body>
 55 		<p>
 56 			Test passes if the upper character in each pair matches the lower one in both shape <strong>and size</strong>.
 57 		</p>
 58 		<div class="test">
 59 
 60 		<!-- FULLWIDTH LATIN -->
 61 			<div>[<span>&#x3000;</span>]<br>[<span> </span>]</div>
 62 			<div><span></span><br><span>!</span></div>
 63 			<div><span></span><br><span>"</span></div>
 64 			<div><span></span><br><span>#</span></div>
 65 			<div><span></span><br><span>$</span></div>
 66 			<div><span></span><br><span>%</span></div>
 67 			<div><span></span><br><span>&amp;</span></div>
 68 			<div><span></span><br><span>'</span></div>
 69 			<div><span></span><br><span>(</span></div>
 70 			<div><span></span><br><span>)</span></div>
 71 			<div><span></span><br><span>*</span></div>
 72 			<div><span></span><br><span>+</span></div>
 73 			<div><span></span><br><span>,</span></div>
 74 			<div><span></span><br><span>-</span></div>
 75 			<div><span></span><br><span>.</span></div>
 76 			<div><span></span><br><span>/</span></div>
 77 			<br>
 78 			<div><span></span><br><span>0</span></div>
 79 			<div><span></span><br><span>1</span></div>
 80 			<div><span></span><br><span>2</span></div>
 81 			<div><span></span><br><span>3</span></div>
 82 			<div><span></span><br><span>4</span></div>
 83 			<div><span></span><br><span>5</span></div>
 84 			<div><span></span><br><span>6</span></div>
 85 			<div><span></span><br><span>7</span></div>
 86 			<div><span></span><br><span>8</span></div>
 87 			<div><span></span><br><span>9</span></div>
 88 			<br>
 89 			<div><span></span><br><span>:</span></div>
 90 			<div><span></span><br><span>;</span></div>
 91 			<div><span></span><br><span>&lt;</span></div>
 92 			<div><span></span><br><span>=</span></div>
 93 			<div><span></span><br><span>&gt;</span></div>
 94 			<div><span></span><br><span>?</span></div>
 95 			<div><span></span><br><span>@</span></div>
 96 			<br>
 97 			<div><span></span><br><span>A</span></div>
 98 			<div><span></span><br><span>B</span></div>
 99 			<div><span></span><br><span>C</span></div>
100 			<div><span></span><br><span>D</span></div>
101 			<div><span></span><br><span>E</span></div>
102 			<div><span></span><br><span>F</span></div>
103 			<div><span></span><br><span>G</span></div>
104 			<div><span></span><br><span>H</span></div>
105 			<div><span></span><br><span>I</span></div>
106 			<div><span></span><br><span>J</span></div>
107 			<div><span></span><br><span>K</span></div>
108 			<div><span></span><br><span>L</span></div>
109 			<div><span></span><br><span>M</span></div>
110 			<div><span></span><br><span>N</span></div>
111 			<div><span></span><br><span>O</span></div>
112 			<div><span></span><br><span>P</span></div>
113 			<div><span></span><br><span>Q</span></div>
114 			<div><span></span><br><span>R</span></div>
115 			<div><span></span><br><span>S</span></div>
116 			<div><span></span><br><span>T</span></div>
117 			<div><span></span><br><span>U</span></div>
118 			<div><span></span><br><span>V</span></div>
119 			<div><span></span><br><span>W</span></div>
120 			<div><span></span><br><span>X</span></div>
121 			<div><span></span><br><span>Y</span></div>
122 			<div><span></span><br><span>Z</span></div>
123 			<br>
124 			<div><span></span><br><span>[</span></div>
125 			<div><span></span><br><span>\</span></div>
126 			<div><span></span><br><span>]</span></div>
127 			<div><span></span><br><span>^</span></div>
128 			<div><span>_</span><br><span>_</span></div>
129 			<div><span></span><br><span>`</span></div>
130 			<br>
131 			<div><span></span><br><span>a</span></div>
132 			<div><span></span><br><span>b</span></div>
133 			<div><span></span><br><span>c</span></div>
134 			<div><span></span><br><span>d</span></div>
135 			<div><span></span><br><span>e</span></div>
136 			<div><span></span><br><span>f</span></div>
137 			<div><span></span><br><span>g</span></div>
138 			<div><span></span><br><span>h</span></div>
139 			<div><span></span><br><span>i</span></div>
140 			<div><span></span><br><span>j</span></div>
141 			<div><span></span><br><span>k</span></div>
142 			<div><span></span><br><span>l</span></div>
143 			<div><span></span><br><span>m</span></div>
144 			<div><span></span><br><span>n</span></div>
145 			<div><span></span><br><span>o</span></div>
146 			<div><span></span><br><span>p</span></div>
147 			<div><span></span><br><span>q</span></div>
148 			<div><span></span><br><span>r</span></div>
149 			<div><span></span><br><span>s</span></div>
150 			<div><span></span><br><span>t</span></div>
151 			<div><span></span><br><span>u</span></div>
152 			<div><span></span><br><span>v</span></div>
153 			<div><span></span><br><span>w</span></div>
154 			<div><span></span><br><span>x</span></div>
155 			<div><span></span><br><span>y</span></div>
156 			<div><span></span><br><span>z</span></div>
157 			<br>
158 			<div><span></span><br><span>{</span></div>
159 			<div><span></span><br><span>|</span></div>
160 			<div><span></span><br><span>}</span></div>
161 			<div><span></span><br><span>~</span></div>
162 
163 			<div><span></span><br><span></span></div>				<!-- LEFT WHITE PARENTHESIS -->
164 			<div><span></span><br><span></span></div>				<!-- RIGHT WHITE PARENTHESIS -->
165 
166 		<!-- HALFWIDTH KATAKANA -->
167 			<br>
168 			<div><span></span><br><span></span></div>
169 			<div><span></span><br><span></span></div>
170 			<div><span></span><br><span></span></div>
171 			<div><span></span><br><span></span></div>
172 			<div><span></span><br><span></span></div>
173 			<br>
174 			<div><span></span><br><span></span></div>
175 			<div><span></span><br><span></span></div>
176 			<div><span></span><br><span></span></div>
177 			<div><span></span><br><span></span></div>
178 			<div><span></span><br><span></span></div>
179 			<div><span></span><br><span></span></div>
180 			<div><span></span><br><span></span></div>
181 			<div><span></span><br><span></span></div>
182 			<div><span></span><br><span></span></div>
183 			<div><span></span><br><span></span></div>
184 			<div><span></span><br><span></span></div>
185 			<br>
186 			<div><span></span><br><span></span></div>
187 			<div><span></span><br><span></span></div>
188 			<div><span></span><br><span></span></div>
189 			<div><span></span><br><span></span></div>
190 			<div><span></span><br><span></span></div>
191 			<div><span></span><br><span></span></div>
192 			<div><span></span><br><span></span></div>
193 			<div><span></span><br><span></span></div>
194 			<div><span></span><br><span></span></div>
195 			<div><span></span><br><span></span></div>
196 			<div><span></span><br><span></span></div>
197 			<div><span></span><br><span></span></div>
198 			<div><span></span><br><span></span></div>
199 			<div><span></span><br><span></span></div>
200 			<div><span></span><br><span>ソ</span></div>
201 			<div><span></span><br><span></span></div>
202 			<div><span></span><br><span></span></div>
203 			<div><span></span><br><span></span></div>
204 			<div><span></span><br><span></span></div>
205 			<div><span></span><br><span></span></div>
206 			<div><span></span><br><span></span></div>
207 			<div><span></span><br><span></span></div>
208 			<div><span></span><br><span></span></div>
209 			<div><span></span><br><span></span></div>
210 			<div><span></span><br><span></span></div>
211 			<div><span></span><br><span></span></div>
212 			<div><span></span><br><span></span></div>
213 			<div><span></span><br><span></span></div>
214 			<div><span></span><br><span></span></div>
215 			<div><span></span><br><span></span></div>
216 			<div><span></span><br><span></span></div>
217 			<div><span></span><br><span></span></div>
218 			<div><span></span><br><span></span></div>
219 			<div><span></span><br><span></span></div>
220 			<div><span></span><br><span></span></div>
221 			<div><span></span><br><span></span></div>
222 			<div><span></span><br><span></span></div>
223 			<div><span></span><br><span></span></div>
224 			<div><span></span><br><span></span></div>
225 			<div><span></span><br><span></span></div>
226 			<div><span></span><br><span></span></div>
227 			<div><span></span><br><span></span></div>
228 			<div><span></span><br><span></span></div>
229 			<div><span></span><br><span></span></div>
230 			<div><span></span><br><span></span></div>
231 			<br>
232 			<div><span></span><br><span></span></div>
233 			<div><span></span><br><span></span></div>
234 
235 		<!-- HALFWIDTH HANGUL -->
236 			<br>
237 			<div>[<span></span>]<br>[<span></span>]</div>	<!-- HANGUL FILLER -->
238 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER KIYEOK -->
239 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER SSANGKIYEOK -->
240 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER KIYEOK-SIOS -->
241 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER NIEUN -->
242 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER NIEUN-CIEUC -->
243 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER NIEUN-HIEUH -->
244 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER TIKEUT -->
245 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER SSANGTIKEUT -->
246 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER RIEUL -->
247 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER RIEUL-KIYEOK -->
248 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER RIEUL-MIEUM -->
249 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER RIEUL-PIEUP -->
250 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER RIEUL-SIOS -->
251 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER RIEUL-THIEUTH -->
252 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER RIEUL-PHIEUPH -->
253 			<div><span></span><br><span></span></div>	<!-- HANGUL LETTER RIEUL-HIEUH -->
254 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER MIEUM -->
255 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER PIEUP -->
256 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER SSANGPIEUP -->
257 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER PIEUP-SIOS -->
258 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER SIOS -->
259 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER SSANGSIOS -->
260 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER IEUNG -->
261 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER CIEUC -->
262 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER SSANGCIEUC -->
263 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER CHIEUCH -->
264 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER KHIEUKH -->
265 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER THIEUTH -->
266 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER PHIEUPH -->
267 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER HIEUH -->
268 			<br>
269 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER A -->
270 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER AE -->
271 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER YA -->
272 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER YAE -->
273 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER EO -->
274 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER E -->
275 
276 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER YEO -->
277 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER YE -->
278 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER O -->
279 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER WA -->
280 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER WAE -->
281 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER OE -->
282 
283 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER YO -->
284 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER U -->
285 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER WEO -->
286 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER WE -->
287 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER WI -->
288 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER YU -->
289 
290 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER EU -->
291 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER YI -->
292 			<div><span></span><br><span></span></div>				<!-- HANGUL LETTER I -->
293 
294 		<!-- FULLWIDTH SIGN -->
295 			<br>
296 			<div><span></span><br><span>¢</span></div>				<!-- CENT SIGN -->
297 			<div><span></span><br><span>£</span></div>				<!-- POUND SIGN -->
298 			<div><span></span><br><span>¬</span></div>				<!-- NOT SIGN -->
299 			<div><span></span><br><span>¯</span></div>				<!-- MACRON -->
300 			<div><span></span><br><span>¦</span></div>				<!-- BROKEN BAR -->
301 			<div><span></span><br><span>¥</span></div>				<!-- YEN SIGN -->
302 			<div><span></span><br><span></span></div>				<!-- WON SIGN -->
303 
304 		<!-- HALFWIDTH SIGN -->
305 			<br>
306 			<div><span></span><br><span></span></div>				<!-- FORMS LIGHT VERTICAL -->
307 			<div><span></span><br><span></span></div>				<!-- LEFTWARDS ARROW -->
308 			<div><span></span><br><span></span></div>				<!-- UPWARDS ARROW -->
309 			<div><span></span><br><span></span></div>				<!-- RIGHTWARDS ARROW -->
310 			<div><span></span><br><span></span></div>				<!-- DOWNWARDS ARROW -->
311 			<div><span></span><br><span></span></div>					<!-- BLACK SQUARE -->
312 			<div><span></span><br><span></span></div>					<!-- WHITE CIRCLE -->
313 
314 		<!-- HALFWIDTH LATIN -->
315 			<br>
316 			<div><span></span><br><span></span></div>
317 			<div><span></span><br><span></span></div>
318 			<div><span></span><br><span></span></div>
319 			<br>
320 			<div><span></span><br><span></span></div>
321 			<div><span></span><br><span></span></div>
322 			<div><span></span><br><span></span></div>
323 
324 		<!-- FULLWIDTH KANA -->
325 			<br>
326 			<div><span></span><br><span></span></div>
327 			<div><span></span><br><span></span></div>
328 			<div><span></span><br><span></span></div>
329 			<div><span></span><br><span></span></div>
330 			<div><span></span><br><span></span></div>
331 			<br>
332 			<div><span></span><br><span></span></div>
333 			<div><span></span><br><span></span></div>
334 			<div><span></span><br><span></span></div>
335 			<div><span></span><br><span></span></div>
336 			<div><span></span><br><span></span></div>
337 		</div>
338 		<p id="fontChange" style="display: none;">
339 			If you are unable to see font glyphs for certain characters using the browsers default font, install the <a href="http://ossipedia.ipa.go.jp/ipafont/">IPA Font(http://ossipedia.ipa.go.jp/ipafont/)</a> and apply it.
340 			<button type="button" onclick="setFontFamily()">
341 				Apply
342 			</button>
343 		</p>
344 		<script type="text/javascript">
345 			if (document.getElementById) {
346 				document.getElementById('fontChange').style.display = 'block'
347 			}
348 		</script>
349 	</body>
350 </html>