gecko-dev/layout/reftests/columns/first-line-first-letter.html
Ting-Yu Lin 000992e33e Bug 1527725 - Exclude ColumnSetWrapperFrame from the first letter style consistency check in nsBlockFrame. r=dbaron
If there's ::first-letter pseudo element on the multicol container,
ColumnSetWrapperFrame will have the first letter style, but it won't get
the NS_BLOCK_HAS_FIRST_LETTER_STYLE bit during frame construction. The
actual first-letter frame construction happens under -moz-column-content
anonymous block.

This patch excludes ColumnSetWrapperFrame from the debug check to meet
the expectation.

Add a reftest to make sure ::first-letter and ::first-line still work
after introducing ColumnSetWrapperFrame, and no assertion is fired.

Differential Revision: https://phabricator.services.mozilla.com/D20757

--HG--
extra : moz-landing-system : lando
2019-02-22 01:14:45 +00:00

19 lines
258 B
HTML

<!DOCTYPE html>
<meta charset="UTF-8">
<style>
div {
column-count: 1;
border: 1px solid red;
width: 400px;
}
div::first-letter {
font-size: 200%;
}
div::first-line {
color: blue;
}
</style>
<div id="column">first line (blue)<br>second line</div>