blob: cb724e91526e9f75f54f03aa4965320fbde9635e [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.
// @dart = 2.9
/// @assertion bool hidden
/// Indicates whether the element is not relevant to the page's current state.
/// @description Checks expected attribute values.
import "dart:html";
import "../../../Utils/expect.dart";
main() {
IFrameElement iframe = new Element.html('<iframe>Content</iframe>');
Expect.isFalse(iframe.hidden);
iframe = new Element.html('<iframe hidden>Content</iframe>');
Expect.isTrue(iframe.hidden);
}