Update web-platform-tests to revision 20a217cb8488e4339e0c9610aba99e2654b676c3

This commit is contained in:
WPT Sync Bot 2020-04-17 08:19:21 +00:00
parent 3ca86eeba5
commit 21de781e2a
285 changed files with 5707 additions and 670 deletions

View file

@ -0,0 +1,36 @@
<!DOCTYPE html>
<title>CSS Flexbox: large flex-shrink value</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#scaled-flex-shrink-factor">
<link rel="help" href="https://crbug.com/543614">
<meta name="assert" content="This test ensures that large flex-shrink value does crash due to the lost of precision.">
<style>
.flex {
display: inline-flex;
width: 40px;
height: 40px;
}
.fractional {
height: 50px;
width: 50.5px;
min-width: 50.5px;
}
.high-shrink {
flex-shrink: 130000000000000;
height: 40px;
width: 40px;
min-width: 40px;
}
</style>
<div class="flex">
<div class="fractional"></div>
<div class="high-shrink"></div>
</div>
<p>The high flex shrink factor can lead to loss of precision as we calculate the
<a href="https://drafts.csswg.org/css-flexbox/#scaled-flex-shrink-factor">sum of
scaled flex shrink factors</a> as required by the spec, and as we later subtract
the scaled flex factors for frozen violations, we can get to a negative value
due to that lost precision.</p>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<title>CSS Flexbox: inline-flex layout with editing operations</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=77772">
<link rel="help" href="https://crbug.com/118662">
<meta name="assert" content="This test ensures that inline-flex layout does not crash with editing operations.">
<style>#el0::first-letter, #el0:first-child { height: 100px; }</style>
<div id='container' contentEditable>
<a>
<img>
<div id="el0" style="display: inline-flex">
<pre>AAAAA</pre>
</div>
</a>
</div>
<script>
window.getSelection().selectAllChildren(document.getElementById('container'));
document.execCommand('FormatBlock', false, '<h5>');
</script>

View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<title>CSS Flexbox: inline-flex layout with updating text and editing operations</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#flex-containers">
<link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=77772">
<link rel="help" href="https://crbug.com/118662">
<meta name="assert" content="This test ensures that inline-flex layout does not crash with updating text and editing operations.">
<style>#el0::first-letter, #el0:first-child { height: 10px; }</style>
<div id='container' contentEditable>
<a>
<img>
<div id="el0" style="display: inline-flex">
<pre></pre>
</div>
</a>
</div>
<script>
document.querySelector('pre').textContent = 'AA\u0605';
window.getSelection().selectAllChildren(document.getElementById('container'));
document.execCommand('FormatBlock', false, '<h1>');
</script>

View file

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html style="display: inline-flex;">
<title>CSS Flexbox: the main axis calculation with frameset</title>
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#main-axis">
<link rel="help" href="https://crbug.com/335121">
<meta name="assert" content="This test ensures that frameset does not crash on computing the main axis.">
<frameset></frameset>
</html>