mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
Previously we didn't clear the computation context caches after: - Recomputing inherited style - Computing keyframe values We now clear the caches in those two cases and verify it has been cleared before using it. Fixes #7959
30 lines
759 B
HTML
30 lines
759 B
HTML
<!doctype html>
|
|
<html>
|
|
<style>
|
|
:root {
|
|
font-size: 50%;
|
|
}
|
|
|
|
#foo {
|
|
font-weight: inherit;
|
|
}
|
|
</style>
|
|
<div id="foo"></div>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
asyncTest(done => {
|
|
requestAnimationFrame(() => {
|
|
requestAnimationFrame(() => {
|
|
document.documentElement.style.fontWeight = "bold";
|
|
getComputedStyle(document.documentElement).fontSize;
|
|
|
|
document.documentElement.style.fontWeight = "normal";
|
|
println(getComputedStyle(document.documentElement).fontSize);
|
|
|
|
done();
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
</html>
|