mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Update web-platform-tests to revision b'14684f837eba364df3de2b6683d4eb5385333158'
This commit is contained in:
parent
f09561254d
commit
0431e20517
369 changed files with 4941 additions and 1492 deletions
|
@ -1,15 +1,14 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Image set invalid resolution rendering</title>
|
||||
<link rel="author" title="Noam Rosenthal" href="mailto:noam@webkit.org">
|
||||
<title>Image set negative resolution rendering</title>
|
||||
<link rel="author" title="Traian Captan" href="mailto:tcaptan@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-images-4/#image-set-notation">
|
||||
<link rel="match" href="reference/image-set-rendering-ref.html">
|
||||
<meta name="assert" content="image-set rendering with zero resolution">
|
||||
<meta name="assert" content="image-set rendering with negative resolution">
|
||||
<style>
|
||||
#test {
|
||||
background-image: url("/images/red.png");
|
||||
background-image: image-set(
|
||||
url("/images/green.png") 0x,
|
||||
url("/images/red.png") -1x,
|
||||
url("/images/green.png") 2x
|
||||
);
|
||||
width: 100px;
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Image set negative resolution rendering</title>
|
||||
<link rel="author" title="Traian Captan" href="mailto:tcaptan@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-images-4/#image-set-notation">
|
||||
<link rel="match" href="/css/reference/blank.html">
|
||||
<meta name="assert" content="image-set rendering with negative resolution">
|
||||
<style>
|
||||
#test {
|
||||
background-image: url("/images/red.png");
|
||||
background-image: image-set(url("/images/green.png") -1x);
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<div id="test"></div>
|
|
@ -142,6 +142,42 @@ function test_resolution_units_parsing() {
|
|||
);
|
||||
}
|
||||
|
||||
function test_non_positive_resolutions_parsing() {
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") 0x)'
|
||||
);
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") 0dppx)'
|
||||
);
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") 0dpi)'
|
||||
);
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") 0dpcm)'
|
||||
);
|
||||
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") -1x)'
|
||||
);
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") -3dppx)'
|
||||
);
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") -96dpi)'
|
||||
);
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
'image-set(url("example.png") -113dpcm)'
|
||||
);
|
||||
}
|
||||
|
||||
function test_gradient_images_parsing() {
|
||||
test_valid_value_variants(
|
||||
'background-image',
|
||||
|
@ -257,14 +293,13 @@ function test_image_set_parsing() {
|
|||
|
||||
test_invalid_value_variants('background-image', "image-set(none, url(example.png) 1x)");
|
||||
test_invalid_value_variants('background-image', "image-set()");
|
||||
test_invalid_value_variants('background-image', "image-set(url(example.png) 0x)");
|
||||
test_invalid_value_variants('background-image', "image-set(url(example.png) -20x)");
|
||||
test_invalid_value_variants('background-image', "image-set('example.jpeg' 92pid url(example.png) 1x)");
|
||||
test_invalid_value_variants('background-image', "image-set(url(example.png) 1x url(example.jpeg))");
|
||||
test_invalid_value_variants('background-image', "image-set(url(example.png) 1x 2x)");
|
||||
|
||||
test_default_resolution_parsing();
|
||||
test_resolution_units_parsing();
|
||||
test_non_positive_resolutions_parsing();
|
||||
test_gradient_images_parsing();
|
||||
test_image_type_parsing();
|
||||
test_no_images_set_nesting();
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Image set invalid resolution rendering</title>
|
||||
<link rel="author" title="Noam Rosenthal" href="mailto:noam@webkit.org">
|
||||
<link rel="author" title="Traian Captan" href="mailto:tcaptan@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-images-4/#image-set-notation">
|
||||
<link rel="match" href="reference/image-set-rendering-ref.html">
|
||||
<meta name="assert" content="image-set rendering with zero resolution">
|
||||
<style>
|
||||
#test {
|
||||
background-image: url("/images/red.png");
|
||||
background-image: image-set(url("/images/green.png") 0x);
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
</style>
|
||||
<div id="test"></div>
|
Loading…
Add table
Add a link
Reference in a new issue