mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 02:08:38 +09:00
Issue #1370 - Part 6: Update tests
This commit is contained in:
parent
581097efe6
commit
3c6a52a0a6
14 changed files with 1227 additions and 6 deletions
|
|
@ -0,0 +1,78 @@
|
|||
<!DOCTYPE html>
|
||||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<title>CSS Reftest Reference</title>
|
||||
<meta charset="utf-8">
|
||||
<link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com">
|
||||
<link rel="stylesheet" type="text/css" href="support/ahem.css">
|
||||
<style>
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
border: 2px solid purple;
|
||||
padding: 2px;
|
||||
margin-right: 2em;
|
||||
width: 50px;
|
||||
height: 200px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.container > * {
|
||||
flex-shrink: 0;
|
||||
min-height: 0;
|
||||
border: 2px solid teal;
|
||||
}
|
||||
|
||||
.smallText { font: 10px Ahem; }
|
||||
.bigText { font: 20px Ahem; }
|
||||
.spacerChild::before {
|
||||
content: '';
|
||||
display: block;
|
||||
background: brown;
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
}
|
||||
.justPadding {
|
||||
/* Empty div with 5px padding on each side */
|
||||
padding: 5px;
|
||||
background: cyan;
|
||||
}
|
||||
canvas { background: fuchsia }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Flex items have unspecified size properties: -->
|
||||
<div class="container">
|
||||
<div class="smallText">a b</div>
|
||||
<div class="bigText">c</div>
|
||||
<div class="spacerChild"></div>
|
||||
<div class="justPadding"></div>
|
||||
<canvas height="20"></canvas>
|
||||
</div>
|
||||
|
||||
<!-- Various specified main-size values, in testcase
|
||||
(removed here in reference case, because they shouldn't affect sizing): -->
|
||||
<div class="container">
|
||||
<div class="smallText">a b</div>
|
||||
<div class="bigText">c</div>
|
||||
<div class="spacerChild"></div>
|
||||
<div class="justPadding"></div>
|
||||
<canvas height="20"></canvas>
|
||||
</div>
|
||||
|
||||
<!-- Various specified cross-size values (should be honored): -->
|
||||
<div class="container">
|
||||
<div class="smallText" style="width: 0px">a b</div>
|
||||
<div class="bigText" style="width: 40px">c</div>
|
||||
<div class="spacerChild" style="width: 20px"></div>
|
||||
<div class="justPadding" style="width: 10px"></div>
|
||||
<canvas height="20" style="width: 8px"></canvas>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue