Update web-platform-tests to revision 55be31752d6d8ae224f4922689e6cdc75576e1e2

This commit is contained in:
WPT Sync Bot 2021-01-14 08:20:58 +00:00
parent 2efc2e2880
commit 8e4409345a
109 changed files with 769 additions and 420 deletions

View file

@ -0,0 +1,11 @@
<!doctype html>
<title>CSS Test Reference</title>
<style>
.test {
display: inline-block;
width: 100px;
height: 100px;
background: red;
}
</style>
<div class="test" style="content: url('/images/green.png')" ></div>

View file

@ -0,0 +1,16 @@
<!doctype html>
<title>Image set is supported in the content property</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="author" title="Noam Rosenthal" href="mailto:noam@webkit.org">
<link rel="help" href="https://drafts.csswg.org/css-images-4/#image-set-notation">
<link rel="help" href="https://drafts.csswg.org/css-content/#content-property">
<link rel="match" href="image-set-content-rendering-ref.html">
<style>
.test {
display: inline-block;
width: 100px;
height: 100px;
background: red;
}
</style>
<div class="test" style="content: image-set(url() 2x, url('/images/green.png') 100dpi)" ></div>

View file

@ -23,6 +23,8 @@
{ property: 'content', imageSet: "linear-gradient(black, white) 1x, 'example.png' 4x", valid: true },
{ property: 'content', imageSet: "url('example.png') 192dpi, linear-gradient(black, white) 1x", valid: true },
{ property: 'background-image', imageSet: "none, url(example.png) 1x", valid: false },
{ property: 'background-image', imageSet: "", valid: false },
{ property: 'background-image', imageSet: "url(example.png) 0x", valid: false },
{ property: 'background-image', imageSet: "url(example.png) -20x", valid: false },
{ property: 'background-image', imageSet: "'example.jpeg' 92pid url(example.png) 1x", valid: false },

View file

@ -32,7 +32,6 @@
<div class="test" style="background-color: lime"></div>
<div class="test" style="background-color: lime"></div>
<div class="test" style="background-color: lime"></div>
<div class="test" style="content: url('/images/green.png')" ></div>
</main>
</body>
</html>

View file

@ -31,10 +31,9 @@
<div class="test" style="background-image: image-set('/images/red.png' 2x, url('/images/green.png') 1x, url('/images/yellow.png') 300dpi)" ></div>
<div class="test" style="background-color: red; background-image: image-set('' 2x, url('/images/green.png') 1x)" ></div>
<div class="test" style="background-image: image-set('/images/green.png' 1x)"></div>
<div class="test" style="background-color: lime; background-image: image-set('/images/red.png')" ></div>
<div class="test" style="background-color: red; background-image: image-set('/images/green.png')" ></div>
<div class="test" style="background-color: lime; background-image: image-set('/images/red.png' 0x)" ></div>
<div class="test" style="background-color: lime; background-image: image-set('/images/red.png' 0x, url('/images/red.png') 2x)" ></div>
<div class="test" style="content: image-set(url() 2x, url('/images/green.png') 100dpi)" ></div>
</main>
</body>
</html>