Update web-platform-tests to revision b'ee6da9d71d0268d7fdb04e8e5b26858f46ee0cc4'

This commit is contained in:
WPT Sync Bot 2022-01-20 04:38:55 +00:00 committed by cybai
parent 4401622eb1
commit b77ad115f6
16832 changed files with 270819 additions and 87621 deletions

View file

@ -0,0 +1,51 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>content animation</title>
<link rel="help" href="https://drafts.csswg.org/css-content/#content-property">
<meta name="test" content="box-shadow supports animation">
<link rel="author" href="mailto:graouts@apple.com" title="Antoine Quint">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
.target::after {
content: "default";
}
@keyframes content-animation {
from { content: "from" }
to { content: "to" }
}
.target.animated::after {
animation: content-animation 1s paused linear forwards;
}
</style>
<body>
<div class="target"></div>
<script>
test(function() {
const target = document.querySelector(".target");
const style = getComputedStyle(target, "::after");
assert_equals(style.content, '"default"', "Before the animation is applied.");
target.classList.add("animated");
const animation = target.getAnimations({ subtree: true })[0];
const testContentAtTime = (time, expected) => {
animation.currentTime = time;
assert_equals(style.content, `"${expected}"`, `Check the animated value at time = ${time}ms`);
};
testContentAtTime(0, 'from');
testContentAtTime(499, 'from');
testContentAtTime(500, 'to');
testContentAtTime(999, 'to');
testContentAtTime(1000, 'to');
}, "The content property can be animated with a discrete animation type.");
</script>
</body>

View file

@ -0,0 +1,2 @@
<!doctype html>
<img src="/images/yellow.png" width=100 height=100>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>content: url() works on image</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="help" href="https://drafts.csswg.org/css-content-3/#content-property">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/2831">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1484928">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1742411">
<link rel="match" href="element-replacement-image-no-src-ref.html">
<img style="content: url(/images/yellow.png)" width=100 height=100>

View file

@ -0,0 +1,9 @@
<!doctype html>
<title>content: url() works on image</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="help" href="https://drafts.csswg.org/css-content-3/#content-property">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/2831">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1484928">
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1742411">
<link rel="match" href="element-replacement-image-no-src-ref.html">
<img src="/images/blue.png" style="content: url(/images/yellow.png)" width=100 height=100>

View file

@ -6,6 +6,7 @@
<link rel="author" title="Jonathan Kew" href="mailto:jkew@mozilla.com">
<link rel="help" href="https://drafts.csswg.org/css-content-3/#quotes">
<link rel="help" href="https://html.spec.whatwg.org/multipage/rendering.html#quotes">
<link rel="help" href="https://unicode-org.github.io/cldr-staging/charts/40/summary/nl.html#101c4f8aa144538f">
<link rel=match href="reference/quotes-021-ref.html">
<style>
body { font: 32px serif; }
@ -13,4 +14,4 @@ body { font: 32px serif; }
<body>
<p>Test passes if the quote marks in both lines match:
<p><q>een <q>twee</q> drie</q>
<p>&#x2018;een &#x201c;twee&#x201d; drie&#x2019;
<p>&#x2018;een &#x2018;twee&#x2019; drie&#x2019;

View file

@ -8,5 +8,5 @@ body { font: 32px serif; }
</style>
<body>
<p>Test passes if the quote marks in both lines match:
<p>&#x2018;een &#x201c;twee&#x201d; drie&#x2019;
<p>&#x2018;een &#x201c;twee&#x201d; drie&#x2019;
<p>&#x2018;een &#x2018;twee&#x2019; drie&#x2019;
<p>&#x2018;een &#x2018;twee&#x2019; drie&#x2019;