Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-getter.html

Issue 141693002: Don't support mixed dashed/camel-cased CSS property names (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-getter-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-getter.html
diff --git a/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-getter.html b/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-getter.html
new file mode 100644
index 0000000000000000000000000000000000000000..8f63364c7c188cb51c8420d760189ecf9e5a3d3e
--- /dev/null
+++ b/LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-getter.html
@@ -0,0 +1,32 @@
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body style="border: 1px; -webkit-box-sizing: border-box">
+<script>
+
+shouldBeUndefined("document.body.style['BorderTopWidth']");
+shouldBeEqualToString("document.body.style['borderTopWidth']", "1px");
+shouldBeUndefined("document.body.style['border-topWidth']");
+shouldBeUndefined("document.body.style['border-TopWidth']");
+shouldBeUndefined("document.body.style['borderTop-width']");
+shouldBeUndefined("document.body.style['borderTop-Width']");
+shouldBeEqualToString("document.body.style['border-top-width']", "1px");
+shouldBeEqualToString("document.body.style['CssBorderTopWidth']", "1px");
+shouldBeEqualToString("document.body.style['cssBorderTopWidth']", "1px");
+shouldBeUndefined("document.body.style['cssborderTopWidth']");
+shouldBeUndefined("document.body.style['cssBorder-top-width']");
+shouldBeUndefined("document.body.style['css-border-top-width']");
+
+shouldBeEqualToString("document.body.style['WebkitBoxSizing']", "border-box");
+shouldBeEqualToString("document.body.style['webkitBoxSizing']", "border-box");
+shouldBeUndefined("document.body.style['webkit-boxSizing']");
+shouldBeUndefined("document.body.style['webkit-BoxSizing']");
+shouldBeUndefined("document.body.style['webkitBox-sizing']");
+shouldBeUndefined("document.body.style['webkitBox-Sizing']");
+shouldBeEqualToString("document.body.style['-webkit-box-sizing']", "border-box");
+shouldBeUndefined("document.body.style['cssWebkitBorderBoxSizing']");
+
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/CSSStyleDeclaration/css-style-declaration-named-getter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698