mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
LibWeb: Invalidate paint-only property after relayout
Before this change, `set_needs_to_resolve_paint_only_properties()` was only called after style invalidation. However, since relayout can be triggered independently from style invalidation, we need to ensure that paint-only properties are updated in that case too.
This commit is contained in:
parent
e8a20b3c3e
commit
ff3e454565
3 changed files with 31 additions and 1 deletions
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<link rel="match" href="reference/resolve-paint-only-properties-after-layout-ref.html" />
|
||||
<style>
|
||||
#box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: red;
|
||||
border-radius: 50px;
|
||||
}
|
||||
</style>
|
||||
<div id="box"></div>
|
||||
<script>
|
||||
window.onload = function () {
|
||||
const box = document.getElementById("box");
|
||||
box.innerHTML = 'hello';
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue