Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html><head> |
michael@0 | 3 | <meta charset="utf-8"> |
michael@0 | 4 | <title>Testcases for overflow-clip-box:content-box</title> |
michael@0 | 5 | <style type="text/css"> |
michael@0 | 6 | html,body { |
michael@0 | 7 | color:black; background-color:white; font:16px monospace; padding:0; margin:7px; |
michael@0 | 8 | } |
michael@0 | 9 | div { |
michael@0 | 10 | width: 100px; padding-right:50px; overflow-clip-box:content-box; |
michael@0 | 11 | overflow:hidden; |
michael@0 | 12 | } |
michael@0 | 13 | </style> |
michael@0 | 14 | </head> |
michael@0 | 15 | <body> |
michael@0 | 16 | |
michael@0 | 17 | <div contenteditable=true spellcheck=false tabindex=0 id=x class="block">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</div> |
michael@0 | 18 | |
michael@0 | 19 | <script> |
michael@0 | 20 | var x = document.getElementById('x'); |
michael@0 | 21 | x.focus(); |
michael@0 | 22 | x.scrollLeft=100000 |
michael@0 | 23 | window.getSelection().collapse(x,1); |
michael@0 | 24 | </script> |
michael@0 | 25 | </body> |
michael@0 | 26 | </html> |