LibWeb: Implement CSS 'contain' property

This commit is contained in:
Psychpsyo
2025-01-18 20:39:26 +01:00
committed by Sam Atkins
parent c53c781745
commit 67ed676831
Notes: github-actions[bot] 2025-01-28 11:25:39 +00:00
154 changed files with 4200 additions and 117 deletions

View File

@@ -0,0 +1,28 @@
<!doctype html>
<html lang=en>
<meta charset=utf-8>
<title>CSS-contain test: size containment on html prevents overflow propagation</title>
<link rel="author" title="Florian Rivoal" href="https://florian.rivoal.net">
<meta name=flags content="">
<meta name=assert content="size containment on html prevents overflow propagation">
<link rel="match" href="../../../../expected/wpt-import/css/css-contain/reference/contain-body-overflow-001-ref.html">
<link rel=help href="https://drafts.csswg.org/css-contain-1/#contain-property">
<style>
html, body, p, div {
margin: 0;
width: 200px;
height: 200px;
}
div { background: red; }
body {
overflow: hidden;
}
html {
contain: size;
}
</style>
<p>Test passes if there is no red.
<div></div>