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

Unified Diff: third_party/WebKit/LayoutTests/svg/transforms/transform-origin-css-property.xhtml

Issue 2786643003: Implement support for the 'transform-box' property (Closed)
Patch Set: Rebase; fix property spec; update histogram.xml Created 3 years, 8 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/svg/transforms/transform-origin-css-property.xhtml
diff --git a/third_party/WebKit/LayoutTests/svg/transforms/transform-origin-css-property.xhtml b/third_party/WebKit/LayoutTests/svg/transforms/transform-origin-css-property.xhtml
index 8fdf30a67ff9e3f5e5a445fe9268cfc23636872e..1706bc983ab6c72825ac752ec971ea3dd566a7c3 100644
--- a/third_party/WebKit/LayoutTests/svg/transforms/transform-origin-css-property.xhtml
+++ b/third_party/WebKit/LayoutTests/svg/transforms/transform-origin-css-property.xhtml
@@ -12,6 +12,12 @@
fill: green;
transform: rotate(90deg);
}
+.relative {
+ transform-box: fill-box;
+}
+.absolute {
+ transform-box: view-box;
+}
</style>
<!--
@@ -30,7 +36,8 @@
function addTransformOriginRect(x, y, s)
{
var rect = document.createElementNS(svgNS, "rect");
- var transformOrigin = (typeof(s) == "string") ? s : (x + s[0]) + " " + (y + s[1]);
+ var transformOrigin = (typeof(s) == "string") ? s : (x + s[0] + "px") + " " + (y + s[1] + "px");
+ rect.setAttribute("class", typeof(s) == "string" ? "relative" : "absolute");
rect.setAttribute("id", "transformOriginRect");
rect.setAttribute("x", x);
rect.setAttribute("y", y);

Powered by Google App Engine
This is Rietveld 408576698