mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 18:10:56 +09:00
15 lines
695 B
HTML
15 lines
695 B
HTML
<!DOCTYPE html>
|
|
<script src="../include.js"></script>
|
|
<div id="foo"></div>
|
|
<script>
|
|
test(() => {
|
|
const foo = document.getElementById("foo");
|
|
println(`Before testing: ${getComputedStyle(foo).getPropertyValue("animation-name")}`);
|
|
const cases = [ 'badger', 'none', 'BANANA', 'NONE', 'InHeRiT', 'revert', 'initial', 'unset', 'george', 'REVERT', 'NaCl', 'default', 'string', '32', 'done' ];
|
|
for (const name of cases) {
|
|
foo.style.setProperty('animation-name', 'INVALID');
|
|
foo.style.setProperty('animation-name', name);
|
|
println(`${name}: ${getComputedStyle(foo).getPropertyValue("animation-name")}`);
|
|
}
|
|
});
|
|
</script>
|