layout/reftests/bugs/495385-2a.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/495385-2a.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<head>
     1.7 +<!-- Test that removing a block element can create frames for text around it -->
     1.8 +<style>
     1.9 +body > div { border:1px solid black; margin:1em;
    1.10 +             font-family:sans-serif; letter-spacing:2px; }
    1.11 +</style>
    1.12 +<script>
    1.13 +function remove(id) {
    1.14 +  var e = document.getElementById(id);
    1.15 +  e.parentNode.removeChild(e);
    1.16 +}
    1.17 +function loaded() {
    1.18 +  document.body.offsetHeight;
    1.19 +  remove("d1");
    1.20 +  remove("d2");
    1.21 +  remove("d3");
    1.22 +  remove("d4");
    1.23 +}
    1.24 +</script>
    1.25 +</head>
    1.26 +<body onload="loaded()">
    1.27 +  <div><span>Hello</span><div id="d1">X</div> <span>Kitty</span></div>
    1.28 +  <div><span>Hello</span> <div id="d2">X</div><span>Kitty</span></div>
    1.29 +  <!-- we'll create frames here, but they won't make a difference to the rendering -->
    1.30 +  <div><div id="d3">X</div> <span>Hello</span> <span>Kitty</span></div>
    1.31 +  <div><span>Hello</span> <span>Kitty</span> <div id="d4">X</div></div>
    1.32 +</body>
    1.33 +</html>

mercurial