blob: 723beaa632da30df523d28f7406ad3e64898ce9b [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 "../../resources/check-layout.dart";
const String htmlEL1 = r'''
#leftBar {
margin-right: 2500px;
#largeVideo {
width: 100%;
background-color: red;
const String htmlEL2 = r'''
<p> If our container's width is zero, then so is ours: there should be no red.<p>
<div id="leftBar">
<video id="largeVideo" data-expected-width=0></video>
void main() {
document.head.appendHtml(htmlEL1, treeSanitizer: new NullTreeSanitizer());
document.body.appendHtml(htmlEL2, treeSanitizer: new NullTreeSanitizer());