blob: 6359e3914d6c5c432f579625309829cd364d803f [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 final style
/// @description Checks that CSS properties are accessible via style field.
import "dart:html";
import "../../../Utils/expect.dart";
import "../testcommon.dart";
main() {
'<div style="color: red; direction: rtl">Foo</div>',
treeSanitizer: new NullTreeSanitizer());
DivElement x = document.body?.firstChild as DivElement;
Expect.equals('red',, 'color');
Expect.equals('rtl',, 'direction');