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

Unified Diff: third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-1.html

Issue 2725973003: Add a use-counter for transforms using the reference box on SVG element (Closed)
Patch Set: Rebase; update histograms.xml Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-2.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-1.html
diff --git a/third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-1.html b/third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-1.html
new file mode 100644
index 0000000000000000000000000000000000000000..4153e06bb9ebabd32bc7f6149e563e7a02e2c33e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-1.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<title>SVG transform: percentage transform-origin triggers use counter</title>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>
+rect {
+ transform-origin: 50% 50%;
+ transform: rotate(90deg);
+}
+</style>
+<svg>
+ <rect width="100" height="100" fill="green"/>
+</svg>
+<script>
+// From UseCounter.h
+const TransformUsesBoxSizeOnSVG = 1842;
+
+test(function() {
+ document.querySelector('rect').getBoundingClientRect();
+ assert_true(internals.isUseCounted(document, TransformUsesBoxSizeOnSVG));
+});
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-2.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698