Files
sousa-gecko/testing/web-platform/tests/css/css-values/random-in-keyframe.html
T
Tim Nguyen 554bd30a94 Bug 2020117 [wpt PR 58140] - Credit myself on tests I previously wrote, a=testonly
Automatic update from web-platform-tests
Credit myself on tests I previously wrote (#58140)

5bc1df18d9ba  Add WPT reftests for conic-gradient and stop normalization.
590dd7f5d93c  Add more <dialog> focus-related tests
b3958a2b7798  Add tests for animating CSS ::backdrop pseudo-element
00668dccbfd2  Import invalid-media-query-list.html from WebKit layout tests (#53149)
d6ef7143ef34  Test that focusing steps do not run when dialog is disconnected
108476e46779  WebKit export: [CSS Highlight API] REGRESSION(270146@main): Crash trying to serialize `::highlight` (#42955)
3455549bab45  WebKit export: [CSS random()] Allow in `@keyframes` (#53860)
7cac08694abc  WebKit export: [view-transitions] Allow animations to run more than once (#44609)
f9c9898520bc  WebKit export: [view-transitions] Fix white flash on certain demos (#45212)
--

wpt-commits: b15b9424e0e34c9010e01455ec3c2bbd41a9b49a
wpt-pr: 58140
2026-03-10 15:42:32 +00:00

27 lines
713 B
HTML

<!DOCTYPE html>
<title>CSS Values and Units Test: random() in @keyframes</title>
<link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
<link rel="help" href="https://drafts.csswg.org/css-values-5/#random">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@keyframes --anim {
from {
translate: 0px;
translate: random(2px, 200px);
}
to {
translate: 0px;
}
}
#target {
animation: --anim 1000s step-end;
}
</style>
<div id="target"></div>
<script>
test(() => {
assert_not_equals(getComputedStyle(target).translate, "0px");
}, "random() is not ignored in keyframe");
</script>