blob: dedb51e177b6292a0dea24d2b0c49510cf546e21 [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 "../../../Utils/expect.dart";
import "../../testharness.dart";
const String htmlEL2 = r'''
Test for <i><a href=""></a>
REGRESSION (r13853): List item's first line overflows containing div</i>.
Text should not overflow the yellow box.
<div style="background-color:yellow; width: 125px;">
<li><span id="text">
Lorem ipsum dolor sit amet
<div id="result">
void main() {
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer());
var result = document.getElementById("result");
var text = document.getElementById("text");
Expect.isTrue(text.offsetWidth <= 125, "text.offsetWidth=${text.offsetWidth}");
result.innerHtml = "PASS";