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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/config-templates.js

Issue 2903413002: Restructure type tracking in StyleValues to work better with new numeric types (Closed)
Patch Set: rebase Created 3 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
Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/config-templates.js
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/config-templates.js b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/config-templates.js
index 7a9ec47069e32477e04cb622bf6d837240a555b7..38b424efc1f579583af13fc8673eb55829b70758 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/config-templates.js
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/properties/config-templates.js
@@ -48,7 +48,10 @@ config_templates.lengthConfig_ = {
// 'calc((5vmin + 1mm) / 2)': new CSSCalcValue({vmin: 2.5, mm: 0.5}),
},
supportsMultiple: false,
- invalidObjects: [new CSSUnitValue(1, 'number')]
+ invalidObjects: [
+ new CSSUnitValue(1, 'number'),
+ new CSSUnitValue(2, 'percent'),
+ ]
};
config_templates.lengthPercentConfig_ = Object.assign(
@@ -77,6 +80,9 @@ config_templates.lengthPercentConfig_.validObjects.concat([
// // Contains px and percent
// new CSSCalcValue({px: 6, percent: 10})
]);
+config_templates.lengthPercentConfig_.invalidObjects = [
+ new CSSUnitValue(1, 'number'),
+];
config_templates.borderConfig_ = {
validKeywords: [

Powered by Google App Engine
This is Rietveld 408576698