serenity/Tests/LibWeb/Ref/resolve-paint-only-properties-after-layout.html
Aliaksandr Kalenik ff3e454565 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.
2024-02-08 13:08:10 +01:00

18 lines
419 B
HTML

<!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>