layout: Remove margins from inline absolute hypothetical boxes.

As they're hypothetical, their margins shouldn't take up space!

Improves Google search results.

Closes #13915.
This commit is contained in:
Patrick Walton 2016-10-25 15:37:57 -07:00
parent 4a151fd2d8
commit 41976c0afc
4 changed files with 50 additions and 1 deletions

View file

@ -1233,7 +1233,8 @@ impl Fragment {
SpecificFragmentInfo::Table |
SpecificFragmentInfo::TableCell |
SpecificFragmentInfo::TableRow |
SpecificFragmentInfo::TableColumn(_) => {
SpecificFragmentInfo::TableColumn(_) |
SpecificFragmentInfo::InlineAbsoluteHypothetical(_) => {
self.margin.inline_start = Au(0);
self.margin.inline_end = Au(0);
return