mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
Tests: Import a bunch of WPT tests from /css/css-flexbox
This commit is contained in:
committed by
Andreas Kling
parent
0ebdac0b35
commit
abd24d001d
Notes:
github-actions[bot]
2024-10-30 09:18:21 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/abd24d001df Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2039
@@ -0,0 +1,34 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Flexbox: flex items don't collapse margins</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#item-margins">
|
||||
<link href="support/flexbox.css" rel="stylesheet">
|
||||
<meta name="assert" content="This test ensures that flex items don't collapse margins
|
||||
with their children.">
|
||||
<style>
|
||||
.flexbox {
|
||||
background-color: lightgrey;
|
||||
}
|
||||
.flexbox p {
|
||||
height: 100px;
|
||||
width: 100px;
|
||||
margin: 10px;
|
||||
background-color: blue;
|
||||
}
|
||||
</style>
|
||||
<script src="../../resources/testharness.js"></script>
|
||||
<script src="../../resources/testharnessreport.js"></script>
|
||||
<script src="../../resources/check-layout-th.js"></script>
|
||||
</head>
|
||||
<body onload="checkLayout('.flexbox')">
|
||||
<div id=log></div>
|
||||
|
||||
<div class="flexbox" style="position: relative">
|
||||
<div data-offset-x="0" data-offset-y="0" data-expected-width="120" data-expected-height="120">
|
||||
<p data-offset-x="10" data-offset-y="10" data-expected-width="100" data-expected-height="100"></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user