blob: dbb54566922bc9edbb01c84afc12e9c2bbe9c600 [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";
const String htmlEL1 = r'''
<style>
.lr { -webkit-writing-mode: vertical-lr; background-color:green; margin:10px; width:100px; height:100px; }
.float { width:100px; height:100px; background-color:blue; float:left}
body { margin: 0 }
</style>
''';
const String htmlEL2 = r'''
The green LR block should avoid the blue float.
<div class="float"></div>
<div class="lr" id="test"></div>
<div id="console"></div>
''';
void main() {
document.head.appendHtml(htmlEL1);
document.body.appendHtml(htmlEL2);
var test = document.getElementById("test");
var rect = test.getBoundingClientRect();
Expect.equals(100, rect.left);
}