clip-rect-001.xht (1105B)
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: clip: Missing commas in rect()</title> 5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/"/> 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#clipping"/> 7 <meta name="flags" content="invalid may"/> 8 <meta name="assert" content="User agents may support separation of values 9 within rect() by whitespace instead of commas, but not a combination of 10 whitespace and commas."/> 11 <style type="text/css"> 12 div { 13 background: red; 14 width: 100px; height: 100px; 15 } 16 .inner { 17 position: absolute; 18 background: green; 19 clip: rect(0,0,0,0); 20 clip: rect( 0 auto auto 0 ); 21 clip: rect(0,0 0,0); 22 clip: rect(0 0,0,0); 23 clip: rect(0,0,0 0); 24 clip: rect(0 0,0 0); 25 } 26 </style> 27 28 </head> 29 <body> 30 <p>There must be a green box below and no red.</p> 31 <div class="outer"> 32 <div class="inner"></div> 33 </div> 34 </body> 35 </html>