Update web-platform-tests to revision b'8d8b273d2265095c7f5330ff231940e68fb49754'

This commit is contained in:
WPT Sync Bot 2023-05-07 01:27:55 +00:00
parent bee09efcc5
commit 9b45fdb3f5
1819 changed files with 34819 additions and 33935 deletions

View file

@ -6,10 +6,10 @@
<meta name="assert" content="image-set rendering with negative resolution">
<style>
#test {
background-image: url("/images/red.png");
background-image: url("/images/green.png");
background-image: image-set(
url("/images/red.png") -1x,
url("/images/green.png") 2x
url("/images/red.png") 2x
);
width: 100px;
height: 100px;

View file

@ -2,12 +2,12 @@
<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">
<link rel="match" href="reference/image-set-rendering-ref.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);
background-image: url("/images/green.png");
background-image: image-set(url("/images/red.png") -1x);
width: 100px;
height: 100px;
}

View file

@ -160,19 +160,19 @@ function test_non_positive_resolutions_parsing() {
'image-set(url("example.png") 0dpcm)'
);
test_valid_value_variants(
test_invalid_value_variants(
'background-image',
'image-set(url("example.png") -1x)'
);
test_valid_value_variants(
test_invalid_value_variants(
'background-image',
'image-set(url("example.png") -3dppx)'
);
test_valid_value_variants(
test_invalid_value_variants(
'background-image',
'image-set(url("example.png") -96dpi)'
);
test_valid_value_variants(
test_invalid_value_variants(
'background-image',
'image-set(url("example.png") -113dpcm)'
);