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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/transforms/transform-boxsize-usecounter-no-trigger-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: use counter does not trigger for translations</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <style>
6 rect {
7 transform-origin: 50% 50%;
8 transform: translate(100, 100);
9 }
10 </style>
11 <svg>
12 <rect width="100" height="100" fill="green"/>
13 </svg>
14 <script>
15 // From UseCounter.h
16 const TransformUsesBoxSizeOnSVG = 1842;
17
18 test(function() {
19 document.querySelector('rect').getBoundingClientRect();
20 assert_false(internals.isUseCounted(document, TransformUsesBoxSizeOnSVG));
21 });
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698