mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix inline size bubbling with fixed width block. Improve intrinsic inline size calculation for text fragments.
These two fixes are related to the wikipedia metabug #2554. They don't make the wikipedia page look better (they cause a slight regression in the top caption table), but they are prerequisites for fixing some of the other layout issues that remain. Added reftests for each of the three cases I have come across that this patch solves.
This commit is contained in:
parent
94f7f46dd8
commit
4cb9f32427
9 changed files with 180 additions and 11 deletions
25
src/test/ref/float_intrinsic_width_ref.html
Normal file
25
src/test/ref/float_intrinsic_width_ref.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style type="text/css">
|
||||
.fl {
|
||||
float: left;
|
||||
}
|
||||
.green {
|
||||
background-color: green;
|
||||
}
|
||||
.fixed {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="fl green fixed"></div>
|
||||
<div class="fl fixed"></div>
|
||||
<div class="fl green fixed"></div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue