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

Unified Diff: third_party/WebKit/LayoutTests/css3/logical-props/resources/style-check.js

Issue 2577363002: Implement CSS Logical Properties: inline/block size (Closed)
Patch Set: Refactor test case Created 3 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
Index: third_party/WebKit/LayoutTests/css3/logical-props/resources/style-check.js
diff --git a/third_party/WebKit/LayoutTests/css3/logical-props/resources/style-check.js b/third_party/WebKit/LayoutTests/css3/logical-props/resources/style-check.js
new file mode 100644
index 0000000000000000000000000000000000000000..cd129fd51b8001af0a368d2d113176ebcbddf394
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/logical-props/resources/style-check.js
@@ -0,0 +1,9 @@
+"use strict";
+function compareWidthHeight(id1, id2) {
+ var element1 = document.getElementById(id1);
+ var style1 = getComputedStyle(element1);
+ var element2 = document.getElementById(id2);
+ var style2 = getComputedStyle(element2);
+ return (style1.width == style2.width) &&
+ (style1.height == style2.height)
+}

Powered by Google App Engine
This is Rietveld 408576698