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
139 lines
4.9 KiB
HTML
139 lines
4.9 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
|
|
margin/border/padding that are larger than the available height,
|
|
and with the flex container having "flex-direction: row-reverse".
|
|
-->
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.multicol {
|
|
height: 10px;
|
|
width: 100px;
|
|
column-width: 20px;
|
|
column-fill: auto;
|
|
border: 2px solid orange;
|
|
margin-bottom: 2px;
|
|
}
|
|
.flexContainer {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
background: teal;
|
|
/* border-width is 0 by default; some sub-testcases will increase it. */
|
|
border: 0 dashed black;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<!-- MARGIN LARGER THAN AVAILABLE HEIGHT -->
|
|
<!-- =================================== -->
|
|
<!-- margin-top is the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
margin-top: 10px"></div>
|
|
</div>
|
|
|
|
<!-- margin-top is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
margin-top: 11px"></div>
|
|
</div>
|
|
|
|
<!-- margin-bottom is exactly the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
margin-bottom: 10px"></div>
|
|
</div>
|
|
|
|
<!-- margin-bottom is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
margin-bottom: 11px"></div>
|
|
</div>
|
|
|
|
<!-- BORDER LARGER THAN AVAILABLE HEIGHT -->
|
|
<!-- =================================== -->
|
|
<!-- border-top-width is the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-top-width: 10px"></div>
|
|
</div>
|
|
|
|
<!-- border-top-width is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-top-width: 11px"></div>
|
|
</div>
|
|
|
|
<!-- border-bottom-width is exactly the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-bottom-width: 10px"></div>
|
|
</div>
|
|
|
|
<!-- border-bottom-width is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-bottom-width: 11px"></div>
|
|
</div>
|
|
|
|
<!-- PADDING LARGER THAN AVAILABLE HEIGHT -->
|
|
<!-- ==================================== -->
|
|
<!-- padding-top is the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
padding-top: 10px"></div>
|
|
</div>
|
|
|
|
<!-- padding-top is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
padding-top: 11px"></div>
|
|
</div>
|
|
|
|
<!-- padding-bottom is exactly the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
padding-bottom: 10px"></div>
|
|
</div>
|
|
|
|
<!-- padding-bottom is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
padding-bottom: 11px"></div>
|
|
</div>
|
|
|
|
<!-- BORDER+PADDING LARGER THAN AVAILABLE HEIGHT -->
|
|
<!-- =========================================== -->
|
|
<!-- border+padding-top is the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-top: 5px;
|
|
padding-top: 5px"></div>
|
|
</div>
|
|
|
|
<!-- padding-top is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-top: 6px;
|
|
padding-top: 6px"></div>
|
|
</div>
|
|
|
|
<!-- padding-bottom is exactly the available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-bottom: 5px;
|
|
padding-bottom: 5px"></div>
|
|
</div>
|
|
|
|
<!-- padding-bottom is larger than available height: -->
|
|
<div class="multicol">
|
|
<div class="flexContainer" style="height: 8px;
|
|
border-bottom: 6px;
|
|
padding-bottom: 6px"></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|