Files
rust_browser/tests/external/wpt/fixtures/wpt-css-css2-positioning-abspos-negative-margin-001-test.html
Zachary D. Rowitsch 16abbd78e7 Bulk-import 2899 WPT CSS reftests and add import tooling
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>
2026-02-14 00:15:27 -05:00

34 lines
734 B
HTML

<!DOCTYPE html>
<title>CSS Test: Absolutely positioned object in a negative margin box</title>
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos">
<link rel="match" href="abspos-negative-margin-001-ref.html">
<style>
html {
font-size: 10px;
line-height: 1;
}
.abspos {
position:absolute;
width: 10px;
height: 10px;
background: blue;
}
</style>
<body>
<div>
<span>
<span style="margin-right: -10px;">
x<span class="abspos"></span>
</span>
</span>
</div>
<div>
<span>
<span style="margin-right: -10px;">
x<div class="abspos"></div>
</span>
</span>
</div>
</body>