mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Fix img with display: block. Fixes text/image overflow on wikipedia.
Ref: #2554
This commit is contained in:
parent
a3b20d8179
commit
818f70e319
4 changed files with 51 additions and 0 deletions
21
tests/ref/img_block_display_ref.html
Normal file
21
tests/ref/img_block_display_ref.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
.ahem {
|
||||
background-color: red;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div><img src="100x100_green.png"></div>
|
||||
<div class="ahem"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue