mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-26 11:45:37 +00:00
000992e33e
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
19 lines
258 B
HTML
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>
|