c523-font-style-000

font-style

WeasyPrint

This browser

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: font-style</title>
 5   <link rel="help" href="http://www.w3.org/TR/REC-CSS1#font-style">
 6   <link rel="author" title="CSS1 Test Suite Contributors" href="http://www.w3.org/Style/CSS/Test/CSS1/current/tsack.html">
 7   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 8   <style type="text/css">
 9    p { color: navy; }
10    .one {font-style: italic;}
11    .two {font-style: oblique;}
12    .three, i {font-style: normal;}
13   </style>
14   <link rel="help" href="http://www.w3.org/TR/CSS21/fonts.html#font-styling" title="15.4 Font styling: the 'font-style' property">
15  </head>
16  <body>
17   <p class="one">
18    This sentence should be in italics.
19    <span class="three">This sentence should be normal.</span>
20   </p>
21   <p class="two"> This sentence should be oblique. </p>
22   <p> <i>This sentence should be normal.</i> </p>
23  </body>
24 </html>