Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / text / selection-with-inline-padding.html
blob56c2a6c19b206dbcb3fd1d9576ce98a6b60b96fb
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test paddings and selection for inline elements</title>
5 <style>
6 p > b, pre > b { padding: 10px; }
7 </style>
8 </head>
9 <body>
10 <p>
11 Lorem ipsum dolor sit amet, consectetur adipiscing elit.<br>
12 <b id="test">Sed dictum erat sit amet pharetra pretium.</b><br>
13 Nullam a est vitae orci tempus tincidunt nec at dolor.
14 </p>
15 <p>
16 Tests that selections do not include padding in the Y direction for
17 inline elements where it should be ignored.
18 </p>
19 <script>
20 var node = document.getElementById('test').firstChild;
21 var range = document.createRange();
22 range.setStart(node, 5);
23 range.setEnd(node, node.length - 5);
24 window.getSelection().addRange(range);
25 </script>
26 </body>
27 </html>