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

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: Oilpan Created 5 years 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 59dcba8955181dd211da66a5b953fab940b96a40..c7e63e7c19f60ace1b09ba0a6e5d711343d8f7e4 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