Files
tubestation/layout/reftests/flexbox/pagination/flexbox-empty-1c.html
Ting-Yu Lin 1cda4ba4e1 Bug 1308587 Part 2 - Remove -moz prefix for all multi-column properties in testing and css files. r=dholbert
This patch is generated by the following script:

```
function remove_column_prefix() {
    echo "Renaming $1 to $2"
    find .\
         -type f\
         ! -path "./obj*"\
         ! -path "./.git"\
         ! -path "./.hg"\
         \( -name "*.html" -or\
            -name "*.xhtml" -or\
            -name "*.xht" -or\
            -name "*.xul" -or\
            -name "*.xml" -or\
            -name "*.css"  \)\
            -exec sed -i -e "s/$1/$2/g" "{}" \;
}

remove_column_prefix "-moz-columns" "columns"
remove_column_prefix "-moz-column-width" "column-width"
remove_column_prefix "-moz-column-count" "column-count"
remove_column_prefix "-moz-column-fill" "column-fill"
remove_column_prefix "-moz-column-gap" "column-gap"
remove_column_prefix "-moz-column-rule" "column-rule"
remove_column_prefix "-moz-column-rule-width" "column-rule-width"
remove_column_prefix "-moz-column-rule-color" "column-rule-color"
remove_column_prefix "-moz-column-rule-style" "column-rule-style"

```

Note: after running the above script, I reverted one minor change to the
file multicol-nested-column-rule-001.xht in the theoretically read-only
directory layout/reftests/w3c-css/received/css-multicol/.

Differential Revision: https://phabricator.services.mozilla.com/D44870
2019-09-05 21:37:32 +00:00

106 lines
3.6 KiB
HTML

<!DOCTYPE html>
<!-- Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ -->
<!-- Testcase for how we fragment an empty fixed-height flex container, with
various combinations of margin/border/padding helping it to be too tall,
and with the flex container having "flex-direction: column".
-->
<html>
<head>
<style>
.multicol {
height: 10px;
width: 100px;
column-width: 20px;
column-fill: auto;
border: 2px solid orange;
}
.flexContainer {
display: flex;
flex-direction: column;
background: teal;
/* border-width is 0 by default; some sub-testcases will increase it. */
border: 0 dashed black;
}
</style>
</head>
<body>
<!-- NO BORDERS/PADDING -->
<!-- ================== -->
<!-- content fits exactly into 1 column: -->
<div class="multicol">
<div class="flexContainer" style="height: 10px"></div>
</div>
<!-- content fits, but margin-top pushes it to overflow: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
margin-top: 2px;"></div>
</div>
<!-- content is too tall, by 1px: -->
<div class="multicol">
<div class="flexContainer" style="height: 11px"></div>
</div>
<!-- BORDERS/PADDING ON TOP -->
<!-- ====================== -->
<!-- content fits, but border-top makes us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
border-top-width: 2px"></div>
</div>
<!-- content fits, but padding-top makes us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
padding-top: 2px"></div>
</div>
<!-- content fits, but border/padding-top make us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
border-top-width: 1px;
padding-top: 1px"></div>
</div>
<!-- BORDERS/PADDING ON BOTTOM -->
<!-- ========================= -->
<!-- content fits, but border-bottom-width makes us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
border-bottom-width: 2px"></div>
</div>
<!-- content fits, but padding-bottom makes us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
padding-bottom: 2px"></div>
</div>
<!-- content fits, but border/padding-bottom make us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
border-bottom-width: 1px;
padding-bottom: 1px"></div>
</div>
<!-- BORDERS/PADDING ON TOP AND BOTTOM -->
<!-- ================================= -->
<!-- content fits, but border-top/bottom combined make us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
border-top-width: 1px;
border-bottom-width: 1px"></div>
</div>
<!-- content fits, but padding-top/bottom combined make us too tall: -->
<div class="multicol">
<div class="flexContainer" style="height: 9px;
padding-top: 1px;
padding-bottom: 1px"></div>
</div>
</body>
</html>