mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 5254eba7f17d10211b56c0d1958649bca29e8985
This commit is contained in:
parent
2eb7c8c080
commit
7da408021a
94 changed files with 1172 additions and 444 deletions
|
@ -1,25 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Flexbox: flex-flow percentage margin with no available space</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-shrink-property">
|
||||
<link rel="issue" href="https://bugs.chromium.org/p/chromium/issues/detail?id=380201">
|
||||
<meta name="assert" content="This test checks that a flexbox doesn't shrink below border/padding
|
||||
when stretching children with no available space.">
|
||||
<style>
|
||||
* {
|
||||
display: flex;
|
||||
padding-bottom: 20pt;
|
||||
min-height: 0.7%;
|
||||
margin-top: 6000%;
|
||||
flex-shrink: 0;
|
||||
flex-basis: 7000%;
|
||||
}
|
||||
</style>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script>
|
||||
<abbr data-expected-height=30210272>
|
||||
<input></input>
|
||||
</abbr>
|
||||
<script>
|
||||
window.checkLayout('abbr');
|
||||
</script>
|
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<title>CSS Flexbox: nested orthogonal children on relayout.</title>
|
||||
<link rel="help" href="https://www.w3.org/TR/css-flexbox-1/#flex-direction-property">
|
||||
<link rel="match" href="reference/nested-orthogonal-flexbox-relayout-ref.html">
|
||||
<meta name="assert" content="This test ensures nested orthogonal flex items get properly relaid out when flexbox changes dimensions."/>
|
||||
<style>
|
||||
#column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 5px solid yellow;
|
||||
}
|
||||
|
||||
#row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border: 5px solid blue;
|
||||
}
|
||||
|
||||
.item {
|
||||
border: 5px solid green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="column">
|
||||
<div id="row">
|
||||
<div class="item">This text should not overflow its box</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
var columnBox = document.getElementById("column");
|
||||
columnBox.offsetHeight;
|
||||
columnBox.style.width = "200px";
|
||||
</script>
|
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
#column {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border: 5px solid yellow;
|
||||
width: 200px;
|
||||
}
|
||||
|
||||
#row {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
border: 5px solid blue;
|
||||
}
|
||||
|
||||
.item {
|
||||
border: 5px solid green;
|
||||
}
|
||||
</style>
|
||||
<body>
|
||||
<div id="column">
|
||||
<div id="row">
|
||||
<div class="item">This text should not overflow its box</div>
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue