All checks were successful
ci / fast (linux) (push) Successful in 7m2s
Three display list / layout bugs fixed:
1. Float+stacking-context elements were invisible ("triple skip"):
collect_stacking_participants unconditionally skipped all floats,
even those creating stacking contexts. Now only skips simple floats.
(CSS 2.1 Appendix E steps 2/7)
2. Abs-pos inline children inside IFCs were never laid out or rendered:
- Layout: FormattingContext::Inline now collects abs-pos/fixed children
into pending_absolutes for deferred layout
- Display list: render_non_inline_descendants renders abs-pos/fixed
inline children via render_layout_box_normal
3. Stacking context anonymous text children were double-painted:
render_stacking_context now skips Anonymous children when the parent
has an IFC (they're already rendered by the IFC fragment system)
Also adds guards against abs-pos inline + z-index double-render, and
promotes WPT test static-position-inline-level-absolute-in-block-level-
context-013 from known_fail to pass.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
35 lines
895 B
HTML
35 lines
895 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<style>
|
|
.container {
|
|
width: 400px;
|
|
height: 200px;
|
|
background-color: lightgray;
|
|
}
|
|
/* float: right that also creates a stacking context via z-index.
|
|
CSS 2.1 Appendix E step 7: must be rendered as a stacking context
|
|
participant, not skipped by collect_stacking_participants. */
|
|
.float-right-sc {
|
|
float: right;
|
|
position: relative;
|
|
z-index: 1;
|
|
width: 100px;
|
|
height: 100px;
|
|
background-color: green;
|
|
}
|
|
.normal {
|
|
width: 200px;
|
|
height: 50px;
|
|
background-color: lightblue;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="float-right-sc">Right+SC</div>
|
|
<div class="normal">Normal</div>
|
|
</div>
|
|
</body>
|
|
</html>
|