Make cssFloat an enumerable property of CSSStyleDeclaration
cssFloat does not show up as an enumerated property of
CSSStyleDeclaration even though it does evaluate to a value. FF and
IE both treat cssFloat as an enumerable property of CSSStyleDeclaration
BUG=492999
Review URL: https://codereview.chromium.org/1288623005
git-svn-id: svn://svn.chromium.org/blink/trunk@200965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
diff --git a/third_party/WebKit/LayoutTests/cssom/cssfloat-cssom.html b/third_party/WebKit/LayoutTests/cssom/cssfloat-cssom.html
new file mode 100644
index 0000000..fb5e3af
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/cssom/cssfloat-cssom.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../LayoutTests/resources/testharness.js"></script>
+<script src="../../LayoutTests/resources/testharnessreport.js"></script>
+
+<div id="target"></div>
+
+<script>
+addEventListener("load", function() {
+ test(function() {
+ assert_true('cssFloat' in getComputedStyle(target), 'cssFloat is in CSSStyleDeclaration');
+ assert_equals(target.style.cssFloat, '');
+ target.style.cssFloat = 'right';
+ assert_equals(target.style.cssFloat, 'right');
+
+ var CSSXGetComputedStyleQueries = 566;
+ assert_false(internals.isUseCounted(document, CSSXGetComputedStyleQueries));
+ }, 'Testing CSSFloat');
+}, false);
+</script>