mirror of
https://github.com/servo/servo.git
synced 2025-06-19 14:48:59 +01:00
When an iframe is created with display:none it sets the root layer to be zero width and height. When updating the rect of the iframe from layout send the entire rect rather than just the new origin, which handles the case where the iframe has been made visible and now has a non-zero rect.
13 lines
181 B
HTML
13 lines
181 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<style type="text/css">
|
|
div {
|
|
width: 300px;
|
|
height: 150px;
|
|
background-color: green;
|
|
}
|
|
</style>
|
|
<body>
|
|
<div></div>
|
|
</body>
|
|
</html>
|