blob: 16f179add9d51f0b376f598926141eb87f1c6903 [file] [log] [blame]
* 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.
* @assertion
* @description
import "dart:html";
import "../../testharness.dart";
import "../../../Utils/expect.dart";
const String htmlEL1 = r'''
.block {
overflow-x: hidden;
width: 100px;
.icon {
display: inline-block;
background-color: red;
height: 29px;
width: 29px;
vertical-align: middle;
const String htmlEL2 = r'''
<div id="test-block" class="block">
<span class="icon">&nbsp;</span>
<span>Cell 2</span>
The block above should not have a scrollbar.
void main() {
document.head.appendHtml(htmlEL1, treeSanitizer: new NullTreeSanitizer());
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer());
var element = document.getElementById('test-block');
Expect.equals(element.offsetHeight, element.scrollHeight);