Files
rust_browser/tests/external/wpt/fixtures/wpt-css-css-backgrounds-border-radius-clipping-002-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

39 lines
1.2 KiB
HTML

<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Backgrounds and Borders Test: 'border-radius' and corner-clipping of content elements</title>
<link rel="author" title="zhouli" href="mailto:liz@oupeng.com">
<link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
<link rel="help" href="http://www.w3.org/TR/css3-background/#corner-clipping">
<link rel="match" href="../reference/ref-nothing-below.xht">
<meta content="" name="flag">
<meta name="assert" content="When set with 'overflow: hidden', an outer container must clip text of its child element at its corners. In this test, the outer container, which has immense size, has a 'border-radius' declaration which implies that the clipping must occur at its curve.">
<style>
body
{
overflow: hidden;
/*
otherwise, horizontal and vertical
scroll bars will be generated
*/
}
div#fail-condition
{
border-radius: 250em;
color: red;
font-size: 32px;
height: 500em;
overflow: hidden;
width: 500em;
}
</style>
<p>Test passes if there is nothing below.
<div id="fail-condition">FAIL FAIL FAIL FAIL</div>