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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html

Issue 2048483002: Plumb TransformValue into the 'transform' property of StylePropertyMap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylevaue
Patch Set: Add Layout test Created 4 years, 6 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 | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html
new file mode 100644
index 0000000000000000000000000000000000000000..42a735f52465291c6f9aaf5ce143650b6af162b6
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/transform.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+
+<div id="testElement"></div>
+
+<script>
+
+test(function() {
+ var transform = new TransformValue([new CSSRotation(20)]);
+
+ assert_equals(testElement.styleMap.get('transform'), null);
+
+ testElement.styleMap.set('transform', transform);
+ assert_equals(testElement.style.transform, 'rotate(20deg)');
+}, "Setting transform works on a regular element.");
+
+
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698