mirror of
https://github.com/servo/servo.git
synced 2025-08-09 07:25:35 +01:00
Update web-platform-tests to revision d7afcb8708eac08a614d161d5622a48172daf7e3
This commit is contained in:
parent
6f8bb4dd40
commit
edff458e23
791 changed files with 17647 additions and 10322 deletions
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<title>default style on buttons</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<div class="tests">
|
||||
<input type="reset">
|
||||
<input type="button">
|
||||
<input type="submit">
|
||||
<input type="color">
|
||||
<button></button>
|
||||
</div>
|
||||
<script>
|
||||
[].slice.call(document.querySelectorAll('.tests > *')).forEach(el => {
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(el).display, 'inline-block');
|
||||
}, `default display on ${el.outerHTML}`);
|
||||
test(() => {
|
||||
assert_equals(getComputedStyle(el).boxSizing, 'border-box');
|
||||
}, `default box-sizing on ${el.outerHTML}`);})
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue