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

Unified Diff: third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js

Issue 1473963004: CSS animation for SVG presentation attribute 'd' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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/animations/responsive/resources/responsive-test.js
diff --git a/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js b/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js
index e00502cf1ed3d9c4081bbaec7dfd8b87146e926c..575e0b3aafc47c1d866154f946cb2d9d52c862d7 100644
--- a/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js
+++ b/third_party/WebKit/LayoutTests/animations/responsive/resources/responsive-test.js
@@ -54,9 +54,19 @@ function assertCSSResponsive(options) {
return property;
},
createTargetContainer(container) {
+ if (options.targetTag) {
+ var svgRoot = createElement('svg', container, 'svg-root', svgNamespace);
+ svgRoot.setAttribute('width', 0);
+ svgRoot.setAttribute('height', 0);
+ return svgRoot;
+ }
+
return createElement('div', container);
},
createTarget(container) {
+ if (options.targetTag)
+ return createElement(options.targetTag, container, 'target', svgNamespace);
+
return createElement('div', container, 'target');
},
setValue(target, property, value) {

Powered by Google App Engine
This is Rietveld 408576698