mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision 04bc9c5667911cce7361ee33244dfc8d7ed61212
This commit is contained in:
parent
156b1cc891
commit
0d3d7c36ab
51 changed files with 843 additions and 298 deletions
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<title>fieldset content before legend</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<fieldset id=test>
|
||||
X
|
||||
<legend>legend</legend>
|
||||
Y
|
||||
</fieldset>
|
||||
<fieldset id=ref>
|
||||
<legend>legend</legend>
|
||||
X Y
|
||||
</fieldset>
|
||||
<script>
|
||||
test(() => {
|
||||
const testElm = document.getElementById('test');
|
||||
const refElm = document.getElementById('ref');
|
||||
assert_equals(testElm.clientHeight, refElm.clientHeight);
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Reference for fieldset overflow</title>
|
||||
<style>
|
||||
.fieldset, .legend {
|
||||
border: 1em solid;
|
||||
background: lime;
|
||||
}
|
||||
.fieldset {
|
||||
height: 1em;
|
||||
margin-top: 2em;
|
||||
}
|
||||
.legend {
|
||||
height: 1em;
|
||||
width: 5em;
|
||||
line-height: 1;
|
||||
margin-top: -4em;
|
||||
margin-left: 1em;
|
||||
}
|
||||
</style>
|
||||
<p>There should be no red.</p>
|
||||
<div class=fieldset>
|
||||
</div>
|
||||
<div class=legend></div>
|
|
@ -0,0 +1,33 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>fieldset overflow</title>
|
||||
<link rel=match href=fieldset-overflow-ref.html>
|
||||
<style>
|
||||
fieldset, legend {
|
||||
border: 1em solid;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
background: lime
|
||||
}
|
||||
fieldset {
|
||||
overflow: auto;
|
||||
height: 2em;
|
||||
}
|
||||
legend {
|
||||
height: 1em;
|
||||
width: 5em;
|
||||
}
|
||||
div {
|
||||
background: red;
|
||||
height: 2em;
|
||||
}
|
||||
|
||||
</style>
|
||||
<p>There should be no red.</p>
|
||||
<fieldset>
|
||||
<legend></legend>
|
||||
<div></div>
|
||||
<div id=last></div>
|
||||
</fieldset>
|
||||
<script>
|
||||
document.getElementById('last').scrollIntoView();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue