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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/usecounter-position3value-conic-gradient.html

Issue 2888283006: CSS: Use count position values with 3 parts (Closed)
Patch Set: rebase Created 3 years, 6 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 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 'use strict';
6
7 test(() => {
8 let ThreeValuedPositionGradient = 2003; // From UseCounter.h
9
10 let isCounted = () => internals.isUseCounted(document, ThreeValuedPositionGr adient);
11 var div = document.createElement('div');
12
13 // usecounter-position3value-radial-gradient.html
14 // tests that other position-using properties do not
15 // increment the counter.
16
17 div.style = 'background-image: conic-gradient(at left, black, red);';
18 div.style = 'background-image: conic-gradient(at left 10%, black, red);';
19 div.style = 'background-image: conic-gradient(at left 10% top 20%, black, re d);';
20 assert_false(isCounted(),
21 '1,2,4 values should not be counted');
22
23 div.style = 'background-image: conic-gradient(at left 10% top, black, red);' ;
24 assert_true(isCounted(),
25 'gradient should be counted');
26 }, 'Three valued position syntax is use counted for conic-gradient');
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698