layout: Include padding in the content block-size when computing the

block-size value when `height: auto` is specified for
absolutely-positioned elements.

Improves "Edit links" on the Wikipedia sidebar.
This commit is contained in:
Patrick Walton 2015-04-10 14:38:46 -07:00
parent a8b0fb1e79
commit 2f3b3eb4c4
4 changed files with 43 additions and 1 deletions

View file

@ -1112,7 +1112,7 @@ impl BlockFlow {
let static_b_offset = self.static_b_offset;
// This is the stored content block-size value from assign-block-size
let content_block_size = self.fragment.content_box().size.block;
let content_block_size = self.fragment.border_box.size.block;
let mut solution = None;
{