mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Only display text carets in text inputs
This commit is contained in:
parent
9523283c14
commit
9cf43877f2
5 changed files with 40 additions and 12 deletions
|
@ -335,6 +335,7 @@ device-pixel-ratio=2 != pixel_snapping_border_a.html pixel_snapping_border_ref.h
|
|||
== stacking_context_overflow_a.html stacking_context_overflow_ref.html
|
||||
== stacking_context_overflow_relative_outline_a.html stacking_context_overflow_relative_outline_ref.html
|
||||
== style_is_in_doc.html style_is_in_doc_ref.html
|
||||
== submit_focus_a.html submit_focus_b.html
|
||||
== table_auto_width.html table_auto_width_ref.html
|
||||
== table_caption_bottom_a.html table_caption_bottom_ref.html
|
||||
== table_caption_top_a.html table_caption_top_ref.html
|
||||
|
|
10
tests/ref/submit_focus_a.html
Normal file
10
tests/ref/submit_focus_a.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<style>
|
||||
button {
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
<button id="1">Submit</button>
|
||||
<script>
|
||||
var elem = document.getElementById('1');
|
||||
elem.focus();
|
||||
</script>
|
11
tests/ref/submit_focus_b.html
Normal file
11
tests/ref/submit_focus_b.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue