mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
ff3e454565
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.
17 lines
419 B
HTML
17 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>
|