word-spacing-101.xht (1659B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Word-spacing inherit on an element</title> 5 <link rel="author" title="Microsoft" href="http://www.microsoft.com/" /> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#propdef-word-spacing" /> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props" /> 8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#word-spacing-property" /> 9 <link rel="match" href="word-spacing-091-ref.xht" /> 10 <meta name="flags" content="ahem" /> 11 <meta name="assert" content="Ensure that word-spacing with inherit uses its parents value for word-spacing." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"> 14 #wrapper 15 { 16 font: 16px/1em Ahem; 17 } 18 #span2 19 { 20 margin-left: 12ex; 21 } 22 #parent 23 { 24 word-spacing: 12ex; 25 } 26 #test 27 { 28 word-spacing: 0; 29 word-spacing: inherit; 30 } 31 </style> 32 </head> 33 <body> 34 <p>Test passes if there are only two boxes below (with no jagged edges).</p> 35 <div id="wrapper"> 36 <div> 37 <span>x </span><span id="span2">x</span> 38 </div> 39 <div id="parent"> 40 <div id="test">x x</div> 41 </div> 42 </div> 43 </body> 44 </html>