| Index: LayoutTests/editing/caret/caret-height.html
|
| diff --git a/LayoutTests/editing/caret/caret-height.html b/LayoutTests/editing/caret/caret-height.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..aa519c184e667989a8e72c38bf0b24ffd4e2784a
|
| --- /dev/null
|
| +++ b/LayoutTests/editing/caret/caret-height.html
|
| @@ -0,0 +1,18 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<body>
|
| +<input id="line1" style="line-height: 1; font-size: 10;"/>
|
| +<input id="line2" style="line-height: 2; font-size: 10;">
|
| +<script src="../../resources/js-test.js"></script>
|
| +<script>
|
| + description('Tests whether explicitly set caret style is retained on performing text selection');
|
| + var input1 = document.getElementById('line1');
|
| + var input2 = document.getElementById('line2');
|
| + input1.focus();
|
| + var cursorLine1 = window.internals.absoluteCaretBounds(input1).height;
|
| + input2.focus();
|
| + var cursorLine2 = window.internals.absoluteCaretBounds(input2).height;
|
| + shouldBe('cursorLine1', 'cursorLine2');
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|