mirror of
https://github.com/servo/servo.git
synced 2025-08-18 11:55:39 +01:00
layout: Fix a couple of issues relating to intrinsic widths of inline
blocks. * Stop double-counting border and padding for inline-block fragments. (Test case: `inline_block_border_intrinsic_size_a.html`.) * Take clearance into account when determining intrinsic widths of blocks containing floats. Improves the Amazon headers.
This commit is contained in:
parent
a346f95e68
commit
33087497ac
8 changed files with 118 additions and 8 deletions
21
tests/ref/float_clearance_intrinsic_width_ref.html
Normal file
21
tests/ref/float_clearance_intrinsic_width_ref.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
#nav-your-account {
|
||||
background: lightblue;
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a id="nav-your-account">
|
||||
<div class="nav-button-title">Hello.</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
<div class="nav-button-title">Account</div>
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue