mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
29 lines
661 B
HTML
29 lines
661 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="../../expected/css/recomputing-inherited-style-doesnt-remove-important-ref.html" />
|
|
<style>
|
|
@keyframes fontSize {
|
|
from {
|
|
width: 5em;
|
|
}
|
|
to {
|
|
width: 5em;
|
|
}
|
|
}
|
|
|
|
#bar {
|
|
width: 1em !important;
|
|
animation: fontSize 1s infinite;
|
|
background-color: green;
|
|
height: 1em;
|
|
}
|
|
</style>
|
|
<div id="foo"><div id="bar"></div></div>
|
|
<script>
|
|
requestAnimationFrame(() => {
|
|
requestAnimationFrame(() => {
|
|
getComputedStyle(foo).fontSize;
|
|
foo.style.setProperty("color", "blue");
|
|
});
|
|
});
|
|
</script>
|