outline-013.html (847B)
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="should"> 7 <meta name=assert content="Negative values on outline-offset should not cause the height and the width of outside of the shape drawn by the outline to become smaller than twice the computed value of the outline-width property"> 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: -150px; 17 } 18 </style> 19 20 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 21 <div></div>