mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
layout: Make inline margins on <input type=button>
and friends apply
only to the button and not to the text inside. Improves the Google home page.
This commit is contained in:
parent
9fda72d60f
commit
8fe2f8930c
5 changed files with 47 additions and 5 deletions
12
tests/ref/input_button_margins_ref.html
Normal file
12
tests/ref/input_button_margins_ref.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
body, html {
|
||||
margin: 0;
|
||||
}
|
||||
input {
|
||||
position: absolute;
|
||||
left: 64px;
|
||||
}
|
||||
</style>
|
||||
<input type=button value=Hello>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue