blob: f7681e32d9b0c880049650f2592558c227d563be [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 Test for cssText of '::distributed()' rule.
*/
import "dart:html";
import "../../../testcommon.dart";
main() {
var style = new Element.html('''
<style id="style1">
.foo::content > div .bar::before { display: block; }
</style>
''', treeSanitizer: new NullTreeSanitizer());
document.head.append(style);
shouldBeEqualToString(
document.getElementById('style1').sheet.cssRules.item(0).cssText,
".foo::content > div .bar::before { display: block; }");
}