blob: 660e81926db5d7c01b3f1775c07fd5f7c73b3e79 [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 This test passes if it doesn't ASSERT.
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
main() {
var index = document.styleSheets.length; // test framework may have ones
var style = new Element.html('''
.absent {
background: #fff url(foo.png) no-repeat left 4px;
body {
background: #fff;
''', treeSanitizer: new NullTreeSanitizer());
''', treeSanitizer: new NullTreeSanitizer());
CssStyleSheet ss = document.styleSheets[index];
CssStyleRule sr = ss.rules[1];;