Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / caret / caret-height.html
blobaa519c184e667989a8e72c38bf0b24ffd4e2784a
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <input id="line1" style="line-height: 1; font-size: 10;"/>
5 <input id="line2" style="line-height: 2; font-size: 10;">
6 <script src="../../resources/js-test.js"></script>
7 <script>
8 description('Tests whether explicitly set caret style is retained on performing text selection');
9 var input1 = document.getElementById('line1');
10 var input2 = document.getElementById('line2');
11 input1.focus();
12 var cursorLine1 = window.internals.absoluteCaretBounds(input1).height;
13 input2.focus();
14 var cursorLine2 = window.internals.absoluteCaretBounds(input2).height;
15 shouldBe('cursorLine1', 'cursorLine2');
16 </script>
17 </body>
18 </html>