Auto merge of #11798 - notriddle:input_caret, r=nox

Account for the font of empty input fields

The font of empty fragments is not accounted for in layout. This behavior is incorrect when part of an input field.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #11653
- [X] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11798)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-06-20 05:58:23 -05:00 committed by GitHub
commit 881c02ec89
4 changed files with 38 additions and 3 deletions

View file

@ -2724,6 +2724,18 @@
"url": "/_mozilla/css/input_button_size_a.html"
}
],
"css/input_empty_equiv.html": [
{
"path": "css/input_empty_equiv.html",
"references": [
[
"/_mozilla/css/input_empty_equiv_ref.html",
"=="
]
],
"url": "/_mozilla/css/input_empty_equiv.html"
}
],
"css/input_height_a.html": [
{
"path": "css/input_height_a.html",
@ -9782,6 +9794,18 @@
"url": "/_mozilla/css/input_button_size_a.html"
}
],
"css/input_empty_equiv.html": [
{
"path": "css/input_empty_equiv.html",
"references": [
[
"/_mozilla/css/input_empty_equiv_ref.html",
"=="
]
],
"url": "/_mozilla/css/input_empty_equiv.html"
}
],
"css/input_height_a.html": [
{
"path": "css/input_height_a.html",

View file

@ -0,0 +1,6 @@
<!doctype html>
<meta charset="utf-8">
<title>An input field is drawn the same with or without content</title>
<link rel="match" href="input_empty_equiv_ref.html">
<input></input>
<script>document.getElementsByTagName("input")[0].focus()</script>

View file

@ -0,0 +1,5 @@
<!doctype html>
<meta charset="utf-8">
<title>An input field is drawn the same with or without content</title>
<input value=" "></input>
<script>document.getElementsByTagName("input")[0].focus()</script>