mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibWeb: Fix CSS transform invalidation when transitioning to none
Fixes https://github.com/LadybirdBrowser/ladybird/issues/2707
This commit is contained in:
parent
a9e20cb6c3
commit
9e287465b9
Notes:
github-actions[bot]
2025-03-15 12:31:38 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 9e287465b9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3953
3 changed files with 34 additions and 12 deletions
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
#box {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: skyblue;
|
||||
margin: 50px;
|
||||
}
|
||||
</style>
|
||||
<script src="include.js"></script>
|
||||
<div id="box"></div>
|
||||
<script>
|
||||
test(() => {
|
||||
const box = document.getElementById('box');
|
||||
box.style.transform = 'translate(50px, 30px)';
|
||||
const before = box.getBoundingClientRect();
|
||||
println(`before x=${before.x}, y=${before.y}, width=${before.width}, height=${before.height}`);
|
||||
box.style.transform = 'none';
|
||||
const after = box.getBoundingClientRect();
|
||||
println(`after x=${after.x}, y=${after.y}, width=${after.width}, height=${after.height}`);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue