layout/base/tests/bug966992-2-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/bug966992-2-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,42 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html><head>
     1.6 +    <meta charset="utf-8">
     1.7 +    <title>Testcases for overflow-clip-box:content-box</title>
     1.8 +    <style type="text/css">
     1.9 +        html,body {
    1.10 +            color:black; background-color:white; font:16px monospace; padding:0; margin:7px;
    1.11 +        }
    1.12 +.block {
    1.13 +  border:1px solid grey; height:50px; width:200px; padding:20px;
    1.14 +  overflow:auto; overflow-clip-box:padding-box;
    1.15 +  line-height:1px;
    1.16 +}
    1.17 +.rel { position:relative; }
    1.18 +.mask1 { position:absolute; width:20px;  background:white; top:0; bottom:0; right:0; }
    1.19 +.mask2 { position:absolute; height:20px; background:white; top:0; left:40px; right:0; }
    1.20 +mask {
    1.21 +  display:block;
    1.22 +  position:absolute;
    1.23 +  left: -1px;
    1.24 +  bottom: -1px;
    1.25 +  height: 25px;
    1.26 +  width: 80%;
    1.27 +  background:black;
    1.28 +}
    1.29 +    </style>
    1.30 +</head>
    1.31 +<body>
    1.32 +
    1.33 +<div style="position:relative;">
    1.34 +<div contenteditable=true spellcheck=false tabindex=0 id=x class="rel block">&nbsp;&nbsp;&nbsp;&nbsp;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<span style="padding-right:20px">X</span><div class=mask2></div><div class=mask1></div></div>
    1.35 +<mask></mask>
    1.36 +</div>
    1.37 +
    1.38 +<script>
    1.39 +var x = document.getElementById('x');
    1.40 +x.focus();
    1.41 +window.getSelection().collapse(x,0);
    1.42 +</script>
    1.43 +
    1.44 +</body>
    1.45 +</html>

mercurial