Bug 1729777 [wpt PR 30405] - Parsing for contain-intrinsic-size: auto <length>, a...
[gecko.git] / testing / web-platform / tests / css / css-backgrounds / background-clip-008.html
blob6b50b002692ef587c0d1d4ca6b00160e88f6ed0a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>CSS Background and Borders Test: background-clip: padding-box with background-color</title>
6 <link rel="author" title="Julien Chaffraix" href="mailto:jchaffraix@webkit.org">
7 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
8 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-04-09 -->
9 <link rel="help" href="http://www.w3.org/TR/css3-background/#the-background-clip" title="3.7. Painting Area: the 'background-clip' property">
10 <meta name="flags" content="">
11 <meta name="assert" content="When 'background-clip' is set to 'padding-box', then the background painting area is clipped at the edges of the padding of the element. In this test, the padding box is 0px tall and as wide as the body element; therefore, red should not be visible.">
12 <link rel="match" href="reference/ref-if-there-is-no-red.xht">
13 <style>
14 div
16 background-clip: padding-box;
17 background-color: red;
18 border: transparent solid 50px;
19 height: auto;
20 padding: 0px;
21 width: auto;
23 </style>
24 </head>
25 <body>
26 <p>Test passes if there is <strong>no red</strong>.</p>
27 <div></div>
28 </body>
29 </html>