Move submit_focus_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-15 23:03:24 -04:00
parent af75427f19
commit cb6c43c18e
4 changed files with 25 additions and 1 deletions

View file

@ -603,6 +603,18 @@
"url": "/_mozilla/css/stacking_context_rtl.html"
}
],
"css/submit_focus_a.html": [
{
"path": "css/submit_focus_a.html",
"references": [
[
"/_mozilla/css/submit_focus_b.html",
"=="
]
],
"url": "/_mozilla/css/submit_focus_a.html"
}
],
"css/table_auto_width.html": [
{
"path": "css/table_auto_width.html",
@ -2588,6 +2600,18 @@
"url": "/_mozilla/css/stacking_context_rtl.html"
}
],
"css/submit_focus_a.html": [
{
"path": "css/submit_focus_a.html",
"references": [
[
"/_mozilla/css/submit_focus_b.html",
"=="
]
],
"url": "/_mozilla/css/submit_focus_a.html"
}
],
"css/table_auto_width.html": [
{
"path": "css/table_auto_width.html",

View file

@ -0,0 +1,11 @@
<link rel='match' href='submit_focus_b.html'>
<style>
button {
display: inline-block;
}
</style>
<button id="1">Submit</button>
<script>
var elem = document.getElementById('1');
elem.focus();
</script>

View file

@ -0,0 +1,11 @@
<style>
input {
padding-left: 0;
padding-right: 0;
}
</style>
<input id="1" type="submit"></input>
<script>
var elem = document.getElementById('1');
elem.focus();
</script>