mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:08:10 +00:00
LibWeb: Improve style propagation to anonymous wrappers
- We now propagate changes in font and line-height to anonymous wrappers when doing a partial style update after invalidation. - We no longer (incorrectly) propagate style from table wrapper boxes to the table root, since inheritance works in the other direction. Fixes #22395
This commit is contained in:
parent
242d1d8eba
commit
4a35693dd7
6 changed files with 94 additions and 8 deletions
|
@ -0,0 +1,17 @@
|
|||
<!doctype html><style>
|
||||
body {
|
||||
background: black;
|
||||
}
|
||||
table {
|
||||
background: white;
|
||||
width: 50%;
|
||||
}
|
||||
td {
|
||||
height: 100px;
|
||||
background: magenta;
|
||||
}
|
||||
</style><center><table><td><script>
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
document.querySelector("center").style.left = "1px";
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue