blob: d4e08a94f83f0188cae67bc7c5f8da87624ed4a2 [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 tests checks that the sticky value for position parses
* correctly.
*/
import "dart:html";
import "../../../testcommon.dart";
main() {
var style = new Element.html('''
<style type="text/css"></style>
''', treeSanitizer: new NullTreeSanitizer());
document.head.append(style);
test(value) {
var div = document.createElement("div");
div.setAttribute("style", value);
document.body.append(div);
var result = div.style.getPropertyValue("position");
div.remove();
return result;
}
shouldBe(test("position: sticky;"), "sticky");
}