LibWeb: Size root element backgrounds relative to its border box

This commit is contained in:
Tim Ledbetter
2026-01-16 10:07:41 +00:00
committed by Andreas Kling
parent 07b10d7ebf
commit 81973cafa4
Notes: github-actions[bot] 2026-02-06 11:30:04 +00:00
15 changed files with 161 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
<!doctype HTML>
<title>Backgrounds on the root element should extend to cover the entire canvas in the presence of margin</title>
<link rel="author" title="Philip Rogers" href="mailto:pdr@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-backgrounds-3/#root-background">
<link rel="match" href="../../../../expected/wpt-import/css/css-backgrounds/background-margin-root-ref.html">
<meta name=fuzzy content="0-1;0-19000">
<style>
html {
background: linear-gradient(lightblue, yellow);
height: 300px;
margin: 50px;
}
</style>