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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/usecounter-position3value-perspective-origin.html

Issue 2888283006: CSS: Use count position values with 3 parts (Closed)
Patch Set: distinct use counters Created 3 years, 7 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 ThreeValuedPositionPerspectiveOrigin = 1980; // From UseCounter.h
9
10 let isCounted = () => internals.isUseCounted(document, ThreeValuedPositionPe rspectiveOrigin);
11 var div = document.createElement('div');
12 div.style = 'shape-outside: circle(0px at left 10% top);';
13 div.style = 'background-image: radial-gradient(0em circle at left 10% top, y ellow, blue);';
14 div.style = 'object-position: left 10% top;';
15 assert_false(isCounted(),
16 'non perspective-origin should non be counted');
17 div.style = 'perspective-origin: left 10% top;';
18 assert_true(isCounted(),
19 'perspective-origin should be counted');
20 }, 'Three valued position syntax is use counted for perspective-origin');
21 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698