blob: 51d01b2fc4f5071c6fb1df3cc4b8e1eadae2443d [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 This tests that we don't incorrectly wrap an auto-layout
* table due to improper truncation of sub-pixel accumulation. See Bug 93911.
import "dart:html";
import "../../../Utils/expect.dart";
import "../../testharness.dart";
const String htmlEL1 = r'''
body {
font-size: 11px;
font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;
line-height: 20px;
td {
padding: 0 0 0 0;
const String htmlEL2 = r'''
<table id="testTable">
<td id="testCell">English (US)</td>
<p id="description"></p>
<div id="console"></div>
void main() {
document.head.appendHtml(htmlEL1, treeSanitizer: new NullTreeSanitizer());
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer());
var lineHeight = document.getElementById('testCell').style.lineHeight;
Element testCell=document.getElementById('testCell');