blob: af3a5972132a8d80ce7ccc35e7f931d93479d040 [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 that noscript element is in DOM but can't be styled.
*/
import "dart:html";
import "../../testcommon.dart";
main() {
var style = new Element.html('''
<style>
noscript { display:block; position:absolute; width:100px; height:100px }
</style>
''', treeSanitizer: new NullTreeSanitizer());
document.head.append(style);
document.body.setInnerHtml('''
<noscript>abc</noscript>
''', treeSanitizer: new NullTreeSanitizer());
var noscript = document.getElementsByTagName('noscript')[0];
shouldBe(noscript.offsetWidth, 0);
}