outline-009

computed values ouf outline-width when outline-style is none

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
outline-width computes to 0 when outline-style is none

Source

 1 <!DOCTYPE html>
 2 <html lang="en"><head><meta charset="utf-8">
 3   <title>CSS-UI test: computed values ouf outline-width when outline-style is none</title>
 4   <link href="http://florian.rivoal.net" rel="author" title="Florian Rivoal">
 5   <meta content="" name="flags">
 6   <meta content="outline-width computes to 0 when outline-style is none" name="assert">
 7   <link href="reference/ref-filled-green-100px-square.htm" rel="match">
 8   <link href="https://drafts.csswg.org/css-ui-3/#outline-props" rel="help">
 9 <style>
10 body {
11   outline-width: 10px;
12   outline-style: none;
13 
14 }
15 div {
16   width: 100px;
17   height: 100px;
18   background: green;
19 
20   outline-width: inherit;
21   outline-style: solid;
22   outline-color: red;
23 }
24 </style>
25 
26   </head><body><p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
27   <div></div>
28 
29 </body></html>