blob: 8c499c848990ef2e6785ac3d119853a1a0ec30ee [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 should not crash.
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
main() {
var style = new Element.html('''
/* dummy descendant rule */
span li { color: red; }
''', treeSanitizer: new NullTreeSanitizer());
Test for <i><a href=""></a> REGRESSION (r27576): Crash in RenderStyle::affectedByHoverRules clicking link on Digg</i>.
This test should not crash.
<div id="target" style="display: none;"></div>
''', treeSanitizer: new NullTreeSanitizer());
document.getElementById("target").style.color = "blue";