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

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

Powered by Google App Engine
This is Rietveld 408576698