outline-012.html (729B)
1 <!doctype html> 2 <html lang=en> 3 <meta charset=utf-8> 4 <title>CSS-UI test: outline-offset width negative values</title> 5 <link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net"> 6 <meta name=flags content=""> 7 <meta name=assert content="Negative values on outline-offset must cause the outline to shrink into the border box."> 8 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 9 <link rel=help href="https://drafts.csswg.org/css-ui-3/#outline-props"> 10 <style> 11 div { 12 width: 100px; 13 height: 100px; 14 background: red; 15 outline: solid 50px green; 16 outline-offset: -50px; 17 } 18 </style> 19 20 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 21 <div></div>