| /* |
| * Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| * for details. All rights reserved. Use of this source code is governed by a |
| * BSD-style license that can be found in the LICENSE file. |
| */ |
| /** |
| * @description |
| */ |
| import "dart:html"; |
| import "../../testcommon.dart"; |
| |
| main() { |
| document.body.setInnerHtml(''' |
| <p> |
| Another test for <i><a href="https://bugs.webkit.org/show_bug.cgi?id=18722">https://bugs.webkit.org/show_bug.cgi?id=18722</a> |
| Webkit Nightly Build crashes when visiting i has a hotdog</i>. |
| </p> |
| <p> |
| The test passes if it does not crash. |
| </p> |
| <div> |
| foo<br><div id="float-1" style="float: left;"></div><br> |
| <div id="float-2" style="float: right;"></div> |
| </div> |
| ''', treeSanitizer: new NullTreeSanitizer()); |
| |
| document.body.offsetTop; |
| document.getElementById("float-1").style.display = "none"; |
| document.body.offsetTop; |
| document.getElementById("float-2").style.display = "none"; |
| } |