mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Avoid resetting important flag when recomputing inherited style
We were missing the important flag here so would always reset it to false
This commit is contained in:
Notes:
github-actions[bot]
2025-11-28 16:17:27 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/9de4e3a0eb9 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6837 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -0,0 +1,28 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user