Update web-platform-tests to revision b4c87a442f82ff5e1de9a94e735b7b6c5f2e60c5

This commit is contained in:
WPT Sync Bot 2021-01-13 08:21:27 +00:00
parent 8a42710915
commit b506d7413a
114 changed files with 1565 additions and 371 deletions

View file

@ -19,10 +19,12 @@ div {
}
#close-target {
width: 300px;
height: 300px;
top: 100px;
right: 200px;
width: 200px;
height: 200px;
border: solid green 50px;
top: 50px;
right: 150px;
margin: 50px;
background-color: green;
scroll-snap-align: start;
}

View file

@ -0,0 +1,81 @@
<!DOCTYPE html>
<title>
CSS Scroll Snap Reference
</title>
<style>
.scroller {
width: 100px;
height: 100px;
border: solid blue;
margin: 10px;
display: inline-block;
}
.scroller > div {
width: 30px;
height: 30px;
background: orange;
}
.proxfar {
border-color: orange;
}
</style>
<p>Test passes if there is an orange square precisely at the top left corner of each blue box (no gap),
and each orange box is empty.
<div class="mandatory">
<div class="scroller">
<div></div>
</div>
<div class="scroller">
<div></div>
</div>
<div class="scroller">
<div></div>
</div>
<!-- on-screen -->
<div class="scroller">
<div></div>
</div>
<div class="scroller">
<div></div>
</div>
<div class="scroller">
<div></div>
</div>
</div>
<div class="proximity">
<!-- off-screen -->
<div class="scroller proxfar">
</div>
<div class="scroller proxfar">
</div>
<div class="scroller proxfar">
</div>
<!-- on-screen -->
<div class="scroller">
<div></div>
</div>
<div class="scroller">
<div></div>
</div>
<div class="scroller">
<div></div>
</div>
</div>

View file

@ -0,0 +1,113 @@
<!DOCTYPE html>
<title>
On-screen vs. Off-screen Snapped Initial Scroll Position (Mandatory and Proximity)
</title>
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align">
<link rel="help" href="https://drafts.csswg.org/css-scroll-snap/#re-snap">
<link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
<!-- Test assumes 2px proximity is enough to snap.
If your implementation has a cogent argument as to why this is too much,
please request a change to this test. ~fantasai -->
<link rel="match" href="scroll-snap-initial-layout-000-ref.html">
<style>
.scroller {
scroll-snap-type: both mandatory;
overflow: hidden;
scroll-padding: 0;
width: 100px;
height: 100px;
border: solid blue;
margin: 10px;
display: inline-block;
}
.mandatory > .scroller {
scroll-snap-type: both mandatory;
}
.proximity > .scroller {
scroll-snap-type: both proximity;
}
.scroller > div {
/* padding wrapper */
width: 30px;
}
.scroller > div > div {
/* target box */
height: 30px;
background: orange;
scroll-snap-align: start;
}
.proxfar {
border-color: orange;
}
.proxfar > div > div {
background: red;
}
</style>
<p>Test passes if there is an orange square precisely at the top left corner of each blue box (no gap),
and each orange box is empty.
<div class="mandatory">
<!-- off-screen -->
<div class="scroller">
<div style="padding: 110px;"><div class="small-target"></div></div>
</div>
<div class="scroller">
<div style="padding-block: 110px;"><div class="small-target"></div></div>
</div>
<div class="scroller">
<div style="padding-inline: 110px;"><div class="small-target"></div></div>
</div>
<!-- on-screen -->
<div class="scroller">
<div style="padding: 90px;"><div class="small-target"></div></div>
</div>
<div class="scroller">
<div style="padding-block: 90px;"><div class="small-target"></div></div>
</div>
<div class="scroller">
<div style="padding-inline: 90px;"><div class="small-target"></div></div>
</div>
</div>
<div class="proximity">
<!-- off-screen -->
<div class="scroller proxfar">
<div style="padding: 110px;"><div class="small-target"></div></div>
</div>
<div class="scroller proxfar">
<div style="padding-block: 110px;"><div class="small-target"></div></div>
</div>
<div class="scroller proxfar">
<div style="padding-inline: 110px;"><div class="small-target"></div></div>
</div>
<!-- on-screen -->
<div class="scroller">
<div style="padding: 2px 110px 110px 2px;"><div class="small-target"></div></div>
</div>
<div class="scroller">
<div style="padding: 2px 110px 110px 2px;"><div class="small-target"></div></div>
</div>
<div class="scroller">
<div style="padding: 2px 110px 110px 2px;"><div class="small-target"></div></div>
</div>
</div>

View file

@ -20,10 +20,12 @@ div {
}
#close-target {
width: 300px;
height: 300px;
top: 100px;
left: 200px;
width: 200px;
height: 200px;
border: solid green 50px;
top: 50px;
left: 150px;
margin: 50px;
background-color: green;
scroll-snap-align: start end;
}

View file

@ -20,10 +20,12 @@ div {
}
#close-target {
width: 300px;
height: 300px;
top: 100px;
left: 200px;
width: 200px;
height: 200px;
border: solid green 50px;
top: 50px;
left: 150px;
margin: 50px;
background-color: green;
scroll-snap-align: end start;
}

View file

@ -23,10 +23,12 @@ div {
}
#close-target {
width: 300px;
height: 300px;
top: 100px;
left: 200px;
width: 200px;
height: 200px;
border: solid green 50px;
top: 50px;
left: 150px;
margin: 50px;
background-color: green;
scroll-snap-align: start;
}