test-synthetic-italic-3-ref.html (1217B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <title>CSS Reference file</title> 5 <meta charset="utf-8" /> 6 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 7 <style type="text/css"> 8 div { 9 /* use Ahem font which has no italic/oblique face, so that the oblique 10 will be synthesized with the given angle */ 11 font: 50px/1 Ahem; 12 position: absolute; 13 } 14 /* test elements will use Ahem with various values of obliqueness */ 15 .test { 16 writing-mode: vertical-rl; 17 -webkit-text-orientation: upright; 18 text-orientation: upright; 19 color: green; 20 } 21 /* check that the sheared glyphs are still correct when transforms are 22 also in effect */ 23 #test3 { 24 font-style: oblique 25deg; 25 top: 150px; 26 left: 100px; 27 transform: scale(1.5) rotate(45deg) skew(30deg); 28 } 29 </style> 30 </head> 31 <body> 32 <p>Test passes if no red shows, just a sheared green block:</p> 33 <div id=test3 class=test>ABC</div> 34 </body> 35 </html>