mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-tests Ship @supports selector() Unfortunately, some animation tests are now failing, because the tests use CSS.supports to query for ::marker support, and change their behavior to include ::marker animations. Animating ::marker is currently not allowed by the spec, and therefore not supported by Blink. I2S: https://groups.google.com/a/chromium.org/d/topic/blink-dev/MVXTnyC_4bQ/discussion Bug: 979041, 1054509 Change-Id: Ib97bec4b4ef9e83598543b6d77bc48e434c6180a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2064930 Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Reviewed-by: Rune Lillesveen <futhark@chromium.org> Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#745427} -- wpt-commits: ea450feb1189f9f53d16c2a01f90aa97c75eb99b wpt-pr: 22017
57 lines
1.5 KiB
HTML
57 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset=utf-8>
|
|
<title>CSS Transitions Test: Transitions do not run for a pseudo-element that is not being rendered</title>
|
|
<link rel="help" title="Starting transitions"
|
|
href="https://drafts.csswg.org/css-transitions/#starting">
|
|
|
|
<script src="/resources/testharness.js" type="text/javascript"></script>
|
|
<script src="/resources/testharnessreport.js" type="text/javascript"></script>
|
|
<script src="./support/helper.js" type="text/javascript"></script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="log"></div>
|
|
|
|
<script>
|
|
|
|
promise_test(async t => {
|
|
for (const pseudoType of ['before', 'after']) {
|
|
const style = addStyle(t, {
|
|
[`.init::${pseudoType}`]: 'content: ""; width: 0px; transition: width 100s;',
|
|
[`.change::${pseudoType}`]: 'width: 100px;',
|
|
[`.cancel::${pseudoType}`]: 'content: none',
|
|
});
|
|
|
|
// Create element (and pseudo-element) and attach event listeners
|
|
const div = addDiv(t);
|
|
div.classList.add('init');
|
|
|
|
const eventWatcher = new EventWatcher(t, div, [
|
|
'transitionrun',
|
|
'transitioncancel',
|
|
]);
|
|
|
|
// Trigger transition
|
|
getComputedStyle(div).width;
|
|
div.classList.add('change');
|
|
getComputedStyle(div).width;
|
|
|
|
await eventWatcher.wait_for('transitionrun');
|
|
|
|
// Make the pseudo-element no longer rendered
|
|
div.classList.add('cancel');
|
|
|
|
await eventWatcher.wait_for('transitioncancel');
|
|
|
|
div.remove();
|
|
style.remove();
|
|
}
|
|
}, 'Transitions on ::before/::after pseudo-elements are canceled when the'
|
|
+ ' content property is cleared');
|
|
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|