mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 00:35:44 +00:00
Bug 1612706 [wpt PR 21539] - Add new comprehensive test for image-set rendering, a=testonly
Automatic update from web-platform-tests Add new comprehensive test for image-set rendering (#21539) * Add new comprehensive test for image-set rendering * Use dpr 1 for now for test - no sufficient infra for DPR setting -- wpt-commits: 1b7dcb06ea477226e90ca0fbc0b86262a410f7ad wpt-pr: 21539
This commit is contained in:
parent
8b3bb44576
commit
37f91c6a36
@ -0,0 +1,38 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Image set rendering</title>
|
||||
<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">
|
||||
<meta name="assert" content="image-set rendering">
|
||||
<style>
|
||||
.test {
|
||||
display: inline-block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 500px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>All images below should be lime or a lime-green gradient when devicePixelRatio is 1 - no red!.</p>
|
||||
<main>
|
||||
<div class="test" style="background-image: url(/images/green.png)"></div>
|
||||
<div class="test" style="background-image: linear-gradient(green, lightgreen)"></div>
|
||||
<div class="test" style="background-image: url('/images/green.png')" ></div>
|
||||
<div class="test" style="background-image: radial-gradient(green, lightgreen)" ></div>
|
||||
<div class="test" style="background-image: linear-gradient(green, lightgreen)" ></div>
|
||||
<div class="test" style="background-image: url('/images/green.png')" ></div>
|
||||
<div class="test" style="background-image: url('/images/green.png')" ></div>
|
||||
<div class="test" style="background-image: url('/images/green.png')" ></div>
|
||||
<div class="test" style="background-image: url('/images/green.png')"></div>
|
||||
<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>
|
@ -0,0 +1,40 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Image set rendering</title>
|
||||
<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">
|
||||
<meta name="assert" content="image-set rendering">
|
||||
<link rel="match" href="image-set-rendering-ref.html">
|
||||
<style>
|
||||
.test {
|
||||
display: inline-block;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background: red;
|
||||
}
|
||||
|
||||
main {
|
||||
width: 500px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<p>All images below should be lime or a lime-green gradient when devicePixelRatio is 1 - no red!.</p>
|
||||
<main>
|
||||
<div class="test" style="background-image: image-set('/images/green.png' 1x)"></div>
|
||||
<div class="test" style="background-image: image-set('/images/red.png' 20dpi, linear-gradient(green, lightgreen) 2x)"></div>
|
||||
<div class="test" style="background-image: image-set(url('/images/green.png') 1x, url('/images/red.png') 2x)" ></div>
|
||||
<div class="test" style="background-image: image-set(radial-gradient(green, lightgreen) 1x, linear-gradient(yellow, red) 2x)" ></div>
|
||||
<div class="test" style="background-image: image-set(linear-gradient(green, lightgreen) 96dpi, '/images/red.png' 100dpi)" ></div>
|
||||
<div class="test" style="background-image: image-set(radial-gradient(red, yellow) 1.3x, url('/images/green.png') 100dpi, linear-gradient(red, yellow) 2.5x)" ></div>
|
||||
<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: 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>
|
Loading…
Reference in New Issue
Block a user