mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
Fix setting display:none after a layout where the element was visible.
Prior to incremental layout, the code would remove the existing construction result. However, with incremental layout the construction result is cloned rather than removed. This change ensures that the previous construction result is cleared when an element's display type changes to none.
This commit is contained in:
parent
cbc4b9520e
commit
a2f1f12c96
4 changed files with 37 additions and 1 deletions
10
tests/ref/hide_after_create_ref.html
Normal file
10
tests/ref/hide_after_create_ref.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue