Update web-platform-tests to revision b'4a4653e088039aec186d6dc1d488120d77695c3a'

This commit is contained in:
WPT Sync Bot 2022-12-11 01:16:53 +00:00
parent 470a50ab60
commit 6337336fab
1043 changed files with 19705 additions and 6973 deletions

View file

@ -0,0 +1,16 @@
<!doctype html>
<meta charset="utf-8">
<link rel="author" title="Delan Azabani" href="mailto:dazabani@igalia.com">
<link rel="stylesheet" href="support/highlights.css">
<style>
main {
font-size: 7em;
margin: 0.5em;
color: white;
-webkit-text-fill-color: yellow;
-webkit-text-stroke-color: green;
-webkit-text-stroke-width: 4px;
}
</style>
<p>Test passes if the text below is yellow with a green outline.
<main class="highlight_reftest">quick</main>

View file

@ -0,0 +1,25 @@
<!doctype html>
<meta charset="utf-8">
<title>CSS Pseudo-Elements Test: highlight styling: compat stroke/fill properties</title>
<link rel="author" title="Delan Azabani" href="mailto:dazabani@igalia.com">
<link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#highlight-styling">
<link rel="help" href="https://compat.spec.whatwg.org/#text-fill-and-stroking">
<link rel="match" href="highlight-styling-003-ref.html">
<meta name="assert" value="This test verifies that the compat stroke/fill properties are applicable to ::selection.">
<script src="support/selections.js"></script>
<link rel="stylesheet" href="support/highlights.css">
<style>
main {
font-size: 7em;
margin: 0.5em;
}
main::selection {
color: white;
-webkit-text-fill-color: yellow;
-webkit-text-stroke-color: green;
-webkit-text-stroke-width: 4px;
}
</style>
<p>Test passes if the text below is yellow with a green outline.
<main class="highlight_reftest">quick</main>
<script>selectNodeContents(document.querySelector("main"));</script>

View file

@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="author" title="Karl Dubost" href="https://github.com/karlcow" />
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-pseudo/#marker-pseudo" />
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-variables/#defining-variables" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<title>::marker with variables</title>
<style>
.firstTest::marker {
--alpha: 0.75;
color: rgba(0 128 0 / var(--alpha));
}
.secondTest::marker {
--color: rgb(0 128 0);
color: var(--color);
}
</style>
</head>
<body>
<ul>
<li class="firstTest">Item 1</li>
<li class="secondTest">Item 2</li>
</ul>
<script>
test(() => {
let firstTest = document.querySelector('.firstTest');
let markerStyle = getComputedStyle(firstTest, '::marker');
assert_equals(markerStyle.color, "rgba(0, 128, 0, 0.75)", "color is green with 0.75 opacity.");
}, `getComputedStyle() for opacity defined by variable in ::marker`);
test(() => {
let secondTest = document.querySelector('.secondTest');
let markerStyle = getComputedStyle(secondTest, '::marker');
assert_equals(markerStyle.color, "rgb(0, 128, 0)", "color is green.");
}, `getComputedStyle() for color defined by variable in ::marker`);
</script>
</body>
</html>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="author" title="Karl Dubost" href="https://github.com/karlcow" />
<link
rel="help"
href="https://w3c.github.io/csswg-drafts/css-pseudo/#marker-pseudo"
/>
<link
rel="help"
href="https://w3c.github.io/csswg-drafts/css-variables/#defining-variables"
/>
<title>::marker with variables</title>
<style>
.firstTest::marker {
color: rgb(255 119 0 / 0.75);
}
.secondTest::marker {
color: rgb(255 119 0);
}
</style>
</head>
<body>
<ul>
<li class="firstTest">Item 1</li>
<li class="secondTest">Item 2</li>
</ul>
</body>
</html>

View file

@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="author" title="Karl Dubost" href="https://github.com/karlcow" />
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-pseudo/#marker-pseudo" />
<link rel="help" href="https://w3c.github.io/csswg-drafts/css-variables/#defining-variables" />
<link rel="match" href="marker-variable-ref.html">
<title>::marker with variables</title>
<style>
.firstTest::marker {
--alpha: 0.75;
color: rgb(255 119 0 / var(--alpha));
}
.secondTest::marker {
--color: rgb(255 119 0);
color: var(--color);
}
</style>
</head>
<body>
<ul>
<li class="firstTest">Item 1</li>
<li class="secondTest">Item 2</li>
</ul>
</body>
</html>