1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00
ladybird/Tests/LibWeb/Text/input/css/custom-ident-parsing.html
2025-03-20 11:50:49 +01:00

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>