mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-08 12:56:23 +03:00
1af466babf
Recently, we moved the resolution of CSS properties that do not affect layout to occur within LayoutState::commit(). This decision was a mistake as it breaks invalidation. With this change, we now re-resolve all properties that do not affect layout before each repaint.
17 lines
395 B
HTML
17 lines
395 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="reference/invalidate-css-transform-property-ref.html" />
|
|
<style>
|
|
#box {
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: red;
|
|
}
|
|
</style>
|
|
<div id="box"></div>
|
|
<script>
|
|
window.onload = function () {
|
|
const box = document.getElementById("box");
|
|
box.style.transform = "translate(50px, 50px)";
|
|
};
|
|
</script>
|