Bug 848539 part 7: Fix or disable reftests that depend on min-width:auto / min-height:auto. r=dbaron

This commit is contained in:
Daniel Holbert 2013-03-27 23:33:20 -07:00
parent 2b74752008
commit 831f38ab05
28 changed files with 114 additions and 48 deletions

View File

@ -16,6 +16,7 @@
width: 50px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that canvas elements' default "min-width: auto" property
is handled correctly (i.e. isn't influenced by the "width" property).
This test checks that a canvas element with "min-width: min-content"
and a huge specified "width" ends up being shrinkable. (In particular,
the large "width" value shouldn't influence the min-content width).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -20,6 +21,7 @@
width: 1000px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -17,6 +17,9 @@
width: 50px;
height: 50px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that canvas elements' default "min-height: auto" property
is handled correctly (i.e. isn't influenced by the "height" property).
This test checks that a canvas element with "min-height: min-content"
and a huge specified "height" ends up being shrinkable. (In particular,
the large "height" value shouldn't influence the min-content height).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -21,6 +22,9 @@
width: 50px;
height: 1000px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -17,6 +17,7 @@
height: 50px;
background: purple;
border: 1px dotted green;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that fieldset elements' default "min-width: auto" property
is handled correctly (i.e. isn't influenced by the "width" property).
This test checks that a fieldset element with "min-width: min-content"
and a huge specified "width" ends up being shrinkable. (In particular,
the large "width" value shouldn't influence the min-content width).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -21,6 +22,7 @@
height: 50px;
background: purple;
border: 1px dotted green;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -18,6 +18,9 @@
height: 50px;
background: purple;
border: 1px dotted green;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -4,9 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that fieldset elements' default "min-height: auto"
property is handled correctly (i.e. isn't influenced by the "height"
property).
This test checks that a fieldset element with "min-height: min-content"
and a huge specified "height" ends up being shrinkable. (In particular,
the large "height" value shouldn't influence the min-content height).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -23,6 +23,9 @@
height: 1000px;
background: purple;
border: 1px dotted green;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -16,6 +16,7 @@
width: 50px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that iframe elements' default "min-width: auto" property
is handled correctly (i.e. isn't influenced by the "width" property).
This test checks that an iframe element with "min-width: min-content"
and a huge specified "width" ends up being shrinkable. (In particular,
the large "width" value shouldn't influence the min-content width).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -20,6 +21,7 @@
width: 1000px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -17,6 +17,9 @@
width: 50px;
height: 50px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that iframe elements' default "min-height: auto" property
is handled correctly (i.e. isn't influenced by the "height" property).
This test checks that an iframe element with "min-height: min-content"
and a huge specified "height" ends up being shrinkable. (In particular,
the large "height" value shouldn't influence the min-content height).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -21,6 +22,9 @@
width: 50px;
height: 1000px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -16,6 +16,7 @@
width: 50px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that img elements' default "min-width: auto" property
is handled correctly (i.e. isn't influenced by the "width" property).
This test checks that an img element with "min-width: min-content"
and a huge specified "width" ends up being shrinkable. (In particular,
the large "width" value shouldn't influence the min-content width).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -20,6 +21,7 @@
width: 1000px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -17,6 +17,9 @@
width: 50px;
height: 50px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that img elements' default "min-height: auto" property
is handled correctly (i.e. isn't influenced by the "height" property).
This test checks that an img element with "min-height: min-content"
and a huge specified "height" ends up being shrinkable. (In particular,
the large "height" value shouldn't influence the min-content height).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -21,6 +22,9 @@
width: 50px;
height: 1000px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -17,6 +17,7 @@
height: 50px;
background: purple;
border: 1px dotted green;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that textarea elements' default "min-width: auto" property
is handled correctly (i.e. isn't influenced by the "width" property).
This test checks that a textarea element with "min-width: min-content"
and a huge specified "width" ends up being shrinkable. (In particular,
the large "width" value shouldn't influence the min-content width).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -21,6 +22,7 @@
height: 50px;
background: purple;
border: 1px dotted green;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -18,6 +18,9 @@
height: 50px;
background: purple;
border: 1px dotted green;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -4,9 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that textarea elements' default "min-height: auto"
property is handled correctly (i.e. isn't influenced by the "height"
property).
This test checks that a textarea element with "min-height: min-content"
and a huge specified "height" ends up being shrinkable. (In particular,
the large "height" value shouldn't influence the min-content height).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -23,6 +23,9 @@
height: 1000px;
background: purple;
border: 1px dotted green;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -16,6 +16,7 @@
width: 50px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that video elements' default "min-width: auto" property
is handled correctly (i.e. isn't influenced by the "width" property).
This test checks that a video element with "min-width: min-content"
and a huge specified "width" ends up being shrinkable. (In particular,
the large "width" value shouldn't influence the min-content width).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -20,6 +21,7 @@
width: 1000px;
height: 50px;
background: purple;
min-width: -moz-min-content;
}
</style>
</head>

View File

@ -17,6 +17,9 @@
width: 50px;
height: 50px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -4,8 +4,9 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that video elements' default "min-height: auto" property
is handled correctly (i.e. isn't influenced by the "height" property).
This test checks that a video element with "min-height: min-content"
and a huge specified "height" ends up being shrinkable. (In particular,
the large "height" value shouldn't influence the min-content height).
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
@ -21,6 +22,9 @@
width: 50px;
height: 1000px;
background: purple;
/* min-height: min-content isn't supported yet (bug 852367), but we'd
like this to work when it is supported. */
min-height: -moz-min-content;
}
</style>
</head>

View File

@ -4,10 +4,10 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that we honor the flexbox-specific behavior of the
new "min-width: auto" value that was introduced in the flexbox spec.
This test checks that we correctly handle flex items with an explicit
"min-width: -moz-min-content".
We check that flex items can't shrink below their min-content width,
We check that such flex items can't shrink below their min-content width,
unless we explicitly reduce their min-width with e.g. "min-width: 0".
-->
<html xmlns="http://www.w3.org/1999/xhtml">
@ -25,6 +25,7 @@
border: 1px dashed green;
background: lightblue;
height: 40px;
min-width: -moz-min-content;
}
div.smallSize { width: 5px; }
div.smallFlexBasis { flex-basis: 2px; }
@ -34,8 +35,8 @@
</head>
<body>
<!-- Check that we use the min-content width as a lower-bound when sizing
flex items. -->
<!-- Check that we honor "min-width: min-content" as a lower-bound when
sizing flex items. -->
<div class="flexbox">
<div>abc d e f</div>
<div class="smallSize">abc d e f</div>
@ -49,9 +50,8 @@
<div class="smallFlexBasis">abc d e f</div>
</div>
<!-- Test that "min-width: 0" on flex items will keep us from clamping to
the min-content width. (So we can now actually honor small 'width'
and 'flex-basis' values.) -->
<!-- Test that we don't clamp when we've got "min-width: 0" on our
flex items, though. -->
<div class="flexbox">
<div class="zeroMinWidth">abc d e f</div>
<div class="zeroMinWidth smallSize">abc d e f</div>

View File

@ -4,10 +4,10 @@
http://creativecommons.org/publicdomain/zero/1.0/
-->
<!--
This test checks that we honor the flexbox-specific behavior of the
new "min-height: auto" value that was introduced in the flexbox spec.
This test checks that we correctly handle flex items with an explicit
"min-height: -moz-min-content".
We check that flex items can't shrink below their min-content height,
We check that such flex items can't shrink below their min-content height,
unless we explicitly reduce their min-height with e.g. "min-height: 0".
-->
<html xmlns="http://www.w3.org/1999/xhtml">
@ -27,6 +27,7 @@
border: 1px dashed green;
background: lightblue;
width: 40px;
min-height: -moz-min-content; /* not yet supported -- see bug 852367 */
}
div.smallSize { height: 5px; }
div.smallFlexBasis { flex-basis: 2px; }
@ -36,8 +37,8 @@
</head>
<body>
<!-- Check that we use the min-content height as a lower-bound when sizing
flex items. -->
<!-- Check that we honor "min-height: min-content" as a lower-bound when
sizing flex items. -->
<div class="flexbox">
<div>a b</div>
<div class="smallSize">a b</div>
@ -51,9 +52,8 @@
<div class="smallFlexBasis">a b</div>
</div>
<!-- Test that "min-height: 0" on flex items will keep us from clamping to
the min-content height. (So we can now actually honor small 'height'
and 'flex-basis' values.) -->
<!-- Test that we don't clamp when we've got "min-height: 0" on our
flex items, though. -->
<div class="flexbox">
<div class="zeroMinHeight">a b</div>
<div class="zeroMinHeight smallSize">a b</div>

View File

@ -22,7 +22,6 @@
}
div.flexbox > * {
max-width: 3px;
min-width: 0; /* to override default 'min-width:auto' */
outline: 1px dashed black;
margin: 0;
vertical-align: top;

View File

@ -47,7 +47,10 @@ random == flexbox-align-self-horiz-1-table.xhtml flexbox-align-self-horiz-1-ref
== flexbox-basic-canvas-horiz-1.xhtml flexbox-basic-canvas-horiz-1-ref.xhtml
== flexbox-basic-canvas-horiz-2.xhtml flexbox-basic-canvas-horiz-2-ref.xhtml
== flexbox-basic-canvas-vert-1.xhtml flexbox-basic-canvas-vert-1-ref.xhtml
fails == flexbox-basic-canvas-vert-2.xhtml flexbox-basic-canvas-vert-2-ref.xhtml # bug 794660
# NOTE: This test will only test something useful once we add support for
# "min-height: -moz-min-content", bug 852367. At that point, it will probably
# fail until bug 794660 is fixed:
== flexbox-basic-canvas-vert-2.xhtml flexbox-basic-canvas-vert-2-ref.xhtml
== flexbox-basic-fieldset-horiz-1.xhtml flexbox-basic-fieldset-horiz-1-ref.xhtml
== flexbox-basic-fieldset-horiz-2.xhtml flexbox-basic-fieldset-horiz-2-ref.xhtml
== flexbox-basic-fieldset-vert-1.xhtml flexbox-basic-fieldset-vert-1-ref.xhtml
@ -59,7 +62,10 @@ fails == flexbox-basic-canvas-vert-2.xhtml flexbox-basic-canvas-vert-2-ref.xhtml
== flexbox-basic-img-horiz-1.xhtml flexbox-basic-img-horiz-1-ref.xhtml
== flexbox-basic-img-horiz-2.xhtml flexbox-basic-img-horiz-2-ref.xhtml
== flexbox-basic-img-vert-1.xhtml flexbox-basic-img-vert-1-ref.xhtml
fails == flexbox-basic-img-vert-2.xhtml flexbox-basic-img-vert-2-ref.xhtml # bug 794660
# NOTE: This test will only test something useful once we add support for
# "min-height: -moz-min-content", bug 852367. At that point, it will probably
# fail until bug 794660 is fixed:
== flexbox-basic-img-vert-2.xhtml flexbox-basic-img-vert-2-ref.xhtml
== flexbox-basic-textarea-horiz-1.xhtml flexbox-basic-textarea-horiz-1-ref.xhtml
== flexbox-basic-textarea-horiz-2.xhtml flexbox-basic-textarea-horiz-2-ref.xhtml
== flexbox-basic-textarea-vert-1.xhtml flexbox-basic-textarea-vert-1-ref.xhtml
@ -67,7 +73,10 @@ fails == flexbox-basic-img-vert-2.xhtml flexbox-basic-img-vert-2-ref.xhtml # bug
== flexbox-basic-video-horiz-1.xhtml flexbox-basic-video-horiz-1-ref.xhtml
== flexbox-basic-video-horiz-2.xhtml flexbox-basic-video-horiz-2-ref.xhtml
== flexbox-basic-video-vert-1.xhtml flexbox-basic-video-vert-1-ref.xhtml
fails == flexbox-basic-video-vert-2.xhtml flexbox-basic-video-vert-2-ref.xhtml # bug 794660
# NOTE: This test will only test something useful once we add support for
# "min-height: -moz-min-content", bug 852367. At that point, it will probably
# fail until bug 794660 is fixed:
== flexbox-basic-video-vert-2.xhtml flexbox-basic-video-vert-2-ref.xhtml
# Tests for dynamic modifications of content inside/around a flex container
== flexbox-dyn-changeFrameWidth-1.xhtml flexbox-dyn-changeFrameWidth-1-ref.xhtml
@ -110,9 +119,9 @@ fuzzy-if(d2d&&layersGPUAccelerated,24,14) == flexbox-dyn-insertAroundSpan-2.xhtm
# Tests for flex items as stacking contexts
== flexbox-items-as-stacking-contexts-1.xhtml flexbox-items-as-stacking-contexts-1-ref.xhtml
# Tests for (default) "min-width: auto" / "min-height: auto" in flex containers
# Tests for "min-width" and "min-height" on flex items.
== flexbox-minSize-horiz-1.xhtml flexbox-minSize-horiz-1-ref.xhtml
== flexbox-minSize-vert-1.xhtml flexbox-minSize-vert-1-ref.xhtml
fails == flexbox-minSize-vert-1.xhtml flexbox-minSize-vert-1-ref.xhtml # bug 852367
# Tests for the order in which we paint flex items
== flexbox-paint-ordering-1.xhtml flexbox-paint-ordering-1-ref.xhtml