gecko-dev/layout/reftests/floats
Ehsan Akhgari 4b84fe41d5 Bug 659828 - Part 1: Apply table margins to the outer table frame instead of the inner table frame (also fixes bug 87277); r=dbaron
Outer table frames act as CSS2.1 table wrapper boxes.  We used to lay them out
without taking their margins into the account, which meant that their width was
always equal to the available width.  This breaks horizontal positioning of
absolutely positioned kids of a table frame.

The main purpose of this patch is to apply the margins of tables to their outer
frame, instead of the inner frame.  This means that the inner table frame will
always have a zero margin, which means that a lot of the stuff which used to
rely on the fact that table margins are applied to the inner frame need to
change.

In particular, in order to get the computed margins of a table, we used to query
the inner table frame, and this patch corrects that.  Also, when shrink wrapping
tables, we used to not take the margins of the inner table frame into account,
which is fixed by this patch too.  nsBlockReflowState::
ComputeReplacedBlockOffsetsForFloats also needed to be changed to read the
margin values from the outer frame too.

Also, as part of this patch, we start to respect the CSS2.1 margin model for
captions on all sides.  This means that in particular, the top/bottom margins on
the top-outside and bottom-outside captions will not be collapsed with the
top/bottom margins of the table, and that the margins of the caption element
contribute to the width and height of the outer table frame.  The
427129-table-caption reftest has been modified to match this new behavior.

Another side effect of this bug is fixing bug 87277, and the reftests for that
bug are marked as passing in this patch.
2011-05-31 19:02:56 -04:00
..
345369-1-ref.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-1.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-2-ref.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-2.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-3-ref.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-3.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-4-ref.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-4.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-5-ref.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
345369-5.html Fix bug 25888 for inline frames other than bullets: redo line reflow when the line's height pushes it into the way of other floats. (Bug 25888) r+sr=roc 2009-05-20 07:21:34 -04:00
429974-1-ref.html Add reftests (bug 310451, bug 398681, bug 407419, bug 409125, bug 429974) 2009-08-27 13:50:58 -07:00
429974-1.html Add reftests (bug 310451, bug 398681, bug 407419, bug 409125, bug 429974) 2009-08-27 13:50:58 -07:00
546048-1-ref.html Subtract the correct border+padding. (Bug 546048) r=roc 2010-04-04 14:46:15 -07:00
546048-1.html Subtract the correct border+padding. (Bug 546048) r=roc 2010-04-04 14:46:15 -07:00
border-box-wrap-around-float-ref.html Bug 659828 - Part 1: Apply table margins to the outer table frame instead of the inner table frame (also fixes bug 87277); r=dbaron 2011-05-31 19:02:56 -04:00
border-box-wrap-around-float.html Bug 659828 - Part 1: Apply table margins to the outer table frame instead of the inner table frame (also fixes bug 87277); r=dbaron 2011-05-31 19:02:56 -04:00
float-outside-block-push-ref.html
float-outside-block-push.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
other-float-outside-rule-3-left-2-ref.html More tests for outside cases for rule 3. 2009-01-10 08:28:15 -08:00
other-float-outside-rule-3-left-2.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
other-float-outside-rule-3-left-ref.html
other-float-outside-rule-3-left.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
other-float-outside-rule-3-right-2-ref.html More tests for outside cases for rule 3. 2009-01-10 08:28:15 -08:00
other-float-outside-rule-3-right-2.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
other-float-outside-rule-3-right-ref.html
other-float-outside-rule-3-right.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
other-float-outside-rule-7-left-ref.html
other-float-outside-rule-7-left.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
other-float-outside-rule-7-right-ref.html
other-float-outside-rule-7-right.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
reftest.list Bug 659828 - Part 1: Apply table margins to the outer table frame instead of the inner table frame (also fixes bug 87277); r=dbaron 2011-05-31 19:02:56 -04:00
zero-height-float-base.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00
zero-height-float-ref.html
zero-height-float.html Add CSS 2.1 test suite metadata for float reftests. 2010-01-27 15:46:48 -08:00