blob: 83043c9d4b5d01c02cd47143733e9b83bdb7e1b9 [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.
* @description
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
import "../../resources/check-layout.dart";
main() {
var style = new Element.html('''
.container {
display: -webkit-flex;
display: -moz-flex;
display: -ie-flex;
display: -o-flex;
display: flex;
.container > div {
overflow: scroll;
width: 50px;
height: 50px;
''', treeSanitizer: new NullTreeSanitizer());
<div class="container" style="display: -webkit-flex">
<div style="display:-webkit-flex;"></div>
<div style="display:-webkit-box;"></div>
''', treeSanitizer: new NullTreeSanitizer());
document.querySelectorAll('.container > div').forEach((item) {
item.setAttribute('data-expected-width', '50');
item.setAttribute('data-expected-height', '50');