Add scripts/import_wpt_reftests.py to sparse-clone the upstream WPT repo and bulk-import qualifying CSS reftests (no JS, no external resources) as known_fail entries. 23 tests already pass and are promoted. The import script is idempotent and exposed via `just import-wpt`. CI now prints the WPT summary (pass=36 known_fail=2877 skip=1) on every run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
48 lines
1.0 KiB
HTML
48 lines
1.0 KiB
HTML
<!DOCTYPE html>
|
|
<title>Overflow:scroll paint order</title>
|
|
<link rel="help" href="https://www.w3.org/TR/CSS2/zindex.html">
|
|
<link rel="match" href="overflow-scroll-paint-order-ref.html">
|
|
<style>
|
|
#scroller {
|
|
background: red;
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
width: 100px;
|
|
height: 100px;
|
|
overflow: scroll;
|
|
}
|
|
#negative-margin {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: green;
|
|
margin-top: -100px;
|
|
}
|
|
#foreground1 {
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 50px;
|
|
background: blue;
|
|
}
|
|
#foreground2 {
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 50px;
|
|
background: magenta;
|
|
}
|
|
</style>
|
|
<!-- The paint order should be:
|
|
scroller background (invisible)
|
|
scroller child background (invisible)
|
|
negative-margin background (visible)
|
|
foreground1 (visible)
|
|
foreground2 (visible)
|
|
-->
|
|
<div id="scroller">
|
|
<div style="height: 200px; background: yellow">
|
|
<div id="foreground1"></div>
|
|
</div>
|
|
</div>
|
|
<div id="negative-margin">
|
|
<div id="foreground2"></div>
|
|
</div>
|