mirror of
https://github.com/servo/servo.git
synced 2025-08-11 16:35:33 +01:00
Update web-platform-tests to revision dc60bfc45b49e3a5e653320e65b0fd447676b836
This commit is contained in:
parent
652a177ff5
commit
0bc549be55
690 changed files with 6588 additions and 1564 deletions
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Reference for sticky hyperlink should work on high dpi devices</title>
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.scroller {
|
||||
overflow: scroll;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.positioned {
|
||||
position: relative;
|
||||
top: 100px;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
height: 700px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
window.addEventListener('load', function() {
|
||||
document.querySelector('.scroller').scrollTop = 100;
|
||||
});
|
||||
</script>
|
||||
<div class='scroller'>
|
||||
<a href='#' class='positioned'>Link</a>
|
||||
<div class='spacer'></div>
|
||||
</div>
|
||||
<div>You should see a sticky link at the top of the scrollable area.</div>
|
|
@ -0,0 +1,38 @@
|
|||
<!DOCTYPE html>
|
||||
<title>Sticky element with hyperlink should work</title>
|
||||
<link rel="match" href="position-sticky-hyperlink-ref.html" />
|
||||
<link rel="help" href="https://www.w3.org/TR/css-position-3/#sticky-pos" />
|
||||
<meta name="assert" content="This test checks that sticky hyperlink works." />
|
||||
|
||||
<style>
|
||||
body {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.scroller {
|
||||
overflow: scroll;
|
||||
width: 200px;
|
||||
height: 200px;
|
||||
}
|
||||
|
||||
.sticky {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.spacer {
|
||||
height: 700px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
window.addEventListener('load', function() {
|
||||
document.querySelector('.scroller').scrollTop = 100;
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class='scroller'>
|
||||
<a href='#' class='sticky'>Link</a>
|
||||
<div class='spacer'></div>
|
||||
</div>
|
||||
<div>You should see a sticky link at the top of the scrollable area.</div>
|
Loading…
Add table
Add a link
Reference in a new issue