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

Unified Diff: third_party/WebKit/LayoutTests/fast/alignment/resources/alignment-parsing-utils.js

Issue 1583433002: [css-align] New CSS Value 'normal' for Content Alignment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed layout tests failing. Created 4 years, 10 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/fast/alignment/resources/alignment-parsing-utils.js
diff --git a/third_party/WebKit/LayoutTests/fast/alignment/resources/alignment-parsing-utils.js b/third_party/WebKit/LayoutTests/fast/alignment/resources/alignment-parsing-utils.js
index 446a0f93d0e026d65fdb888949434ee1bb30fe37..d019691b1399954708c5f04eeeffe9729924de5b 100644
--- a/third_party/WebKit/LayoutTests/fast/alignment/resources/alignment-parsing-utils.js
+++ b/third_party/WebKit/LayoutTests/fast/alignment/resources/alignment-parsing-utils.js
@@ -8,8 +8,10 @@ function checkValues(element, property, propertyID, value, computedValue)
function checkBadValues(element, property, propertyID, value)
{
+ var elementID = element.id || "element";
+ var initialValue = eval("window.getComputedStyle(" + elementID + " , '').getPropertyValue('" + propertyID + "')");
element.style[property] = value;
- checkValues(element, property, propertyID, "", "start");
+ checkValues(element, property, propertyID, "", initialValue);
}
function checkInitialValues(element, property, propertyID, value, initial)

Powered by Google App Engine
This is Rietveld 408576698