shand-border-000.xht (835B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Shorthand Properties (border)</title> 5 <link rel="author" title="L. David Baron" href="https://dbaron.org/"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-06-26 --> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/about.html#shorthand"/> 8 <link rel="match" href="shand-border-000-ref.xht" /> 9 10 <style type="text/css"> 11 12 body { background: white; } 13 span { color: black; } 14 15 p { color: red; } 16 p { border-color: red; } 17 p { border: medium solid; } 18 p { color: green; } 19 20 </style> 21 </head> 22 <body> 23 24 <p><span>This text should have a green border.</span></p> 25 26 </body> 27 </html>