blob: 51876e516b1c95365f31502e42666a0d81605b07 [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'''
<div style="overflow: -webkit-paged-x; -webkit-column-gap: 20px; height: 300px; width: 100px; ">
<div id=a style="height: 50%;"></div>
<div id=b style="height: 50%;"></div>
<div id="target" style="height: 50%;"></div>
<div id=c style="height: 50%;"></div>
<div id="result"></div>
</div>
''';
void main() {
document.body.attributes["style"]="margin: 0;";
document.body.setInnerHtml(htmlEL2, treeSanitizer:new NullTreeSanitizer());
Expect.identical(document.caretRangeFromPoint(115, 50).startContainer, document.getElementById("target"));
}