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:padding-box; |
michael@0 | 11 | overflow:hidden; |
michael@0 | 12 | } |
michael@0 | 13 | .rel { position:relative; } |
michael@0 | 14 | .mask5 { position:absolute; height:40px; background:white; top:3px; left:0px; width:50px; } |
michael@0 | 15 | </style> |
michael@0 | 16 | </head> |
michael@0 | 17 | <body> |
michael@0 | 18 | |
michael@0 | 19 | <div contenteditable=true spellcheck=false tabindex=0 id=x class="block"><span style="padding-right:50px">XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</span></div> |
michael@0 | 20 | |
michael@0 | 21 | <script> |
michael@0 | 22 | var x = document.getElementById('x'); |
michael@0 | 23 | x.focus(); |
michael@0 | 24 | x.scrollLeft=100000 |
michael@0 | 25 | window.getSelection().collapse(x,1); |
michael@0 | 26 | </script> |
michael@0 | 27 | </body> |
michael@0 | 28 | </html> |