Index: third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-2.html |
diff --git a/third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-2.html b/third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-2.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7da15d5161f5297a76e566ee7c8d010443cd81f7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-2.html |
@@ -0,0 +1,21 @@ |
+<!DOCTYPE html> |
+<title>SVG transform: percentage translate(...) transform function triggers use counter</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<style> |
+rect { |
+ transform: translate(50%, 50%); |
+} |
+</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> |