mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 14:20:14 +02:00
Automatic update from web-platform-testsAdd tests for the breaking of a multicolumn across columns, including backgrounds and column rules. (#9527) The *-nobackground-* tests pass in Firefox and Chrome, and the others pass in Chrome and fail in Firefox due to what I (as a Gecko implementor) consider to be a Firefox bug. I haven't yet tested other engines. (Though -nobackground-003 fails in Firefox due to a different bug, and multicol-breaking-002 doesn't trigger the background-related Firefox bug.) Given the level of ambiguity in the multicol spec, I suspect these tests probably test some things that aren't formally specified. However, I think that's probably OK for now. One issue that I know of that they depend on the spec for is w3c/csswg-drafts#2309. wpt-commits: d04c0d50dbbf7752c27957005a5a659701b781ad wpt-pr: 9527 wpt-commits: d04c0d50dbbf7752c27957005a5a659701b781ad wpt-pr: 9527
82 lines
1.6 KiB
HTML
82 lines
1.6 KiB
HTML
<!DOCTYPE HTML>
|
|
<title>CSS Test Reference: breaking of a multicolumn</title>
|
|
<meta charset="utf-8">
|
|
<link rel="author" title="L. David Baron" href="https://dbaron.org/">
|
|
<link rel="author" title="Mozilla" href="https://mozilla.org/">
|
|
<style>
|
|
|
|
.outer {
|
|
height: 100px;
|
|
width: 800px;
|
|
background: rgba(0, 0, 255, 0.3);
|
|
position: relative;
|
|
}
|
|
|
|
.blueborders {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 194px; /* 188px first column + (16px gap - 4px rule) / 2 */
|
|
width: 200px; /* 188px second column + (16px gap - 4px rule) */
|
|
height: 100px;
|
|
border-right: blue solid 4px;
|
|
border-left: blue solid 4px;
|
|
}
|
|
|
|
.innerbg {
|
|
height: 100px;
|
|
width: 188px;
|
|
background: rgba(255, 0, 255, 0.3);
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
.inner {
|
|
height: 100px;
|
|
width: 86px;
|
|
font: 16px/1.25 sans-serif;
|
|
position: absolute;
|
|
top: 0;
|
|
}
|
|
|
|
.lefthalf {
|
|
border-right: 2px solid fuchsia;
|
|
padding-right: 7px;
|
|
}
|
|
|
|
.righthalf {
|
|
padding-left: 7px;
|
|
}
|
|
|
|
</style>
|
|
|
|
<div class="outer">
|
|
<div class="blueborders"></div>
|
|
<div class="innerbg" style="left: 0"></div>
|
|
<div class="inner lefthalf" style="left: 0">
|
|
AAAAA<br>
|
|
BBBBB<br>
|
|
CCCCC<br>
|
|
DDDDD<br>
|
|
EEEEE
|
|
</div>
|
|
<div class="inner righthalf" style="left: 95px">
|
|
FFFFF<br>
|
|
GGGGG<br>
|
|
HHHHH<br>
|
|
IIIII<br>
|
|
JJJJJ
|
|
</div>
|
|
<div class="innerbg" style="left: 204px"></div>
|
|
<div class="inner lefthalf" style="left: 204px">
|
|
KKKKK<br>
|
|
LLLLL<br>
|
|
MMMMM<br>
|
|
NNNNN<br>
|
|
OOOOO
|
|
</div>
|
|
<div class="inner righthalf" style="left: 299px">
|
|
PPPPP<br>
|
|
QQQQQ
|
|
</div>
|
|
<div class="innerbg" style="left: 408px"></div>
|
|
</div>
|