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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-2.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, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>SVG transform: percentage translate(...) transform function triggers use counter</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <style>
6 rect {
7 transform: translate(50%, 50%);
8 }
9 </style>
10 <svg>
11 <rect width="100" height="100" fill="green"/>
12 </svg>
13 <script>
14 // From UseCounter.h
15 const TransformUsesBoxSizeOnSVG = 1842;
16
17 test(function() {
18 document.querySelector('rect').getBoundingClientRect();
19 assert_true(internals.isUseCounted(document, TransformUsesBoxSizeOnSVG));
20 });
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698