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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/usecounter-angle-zero-filter.html

Issue 2898133002: CSS: Use count unitless 0 supplied as <angle> (Closed)
Patch Set: test 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 UnitlessZeroAngleFilter = 2007; // From UseCounter.h
9
10 let isCounted = () => internals.isUseCounted(document, UnitlessZeroAngleFilt er);
11 var div = document.createElement('div');
12
13 // These values are invalid.
14 div.style = 'image-orientation: 0;';
15 div.style = 'rotate: 0;';
16 div.style = 'offset-path: ray(0 closest-side);';
17 // These properties have their own counters.
18 div.style = 'background-image: linear-gradient(0, red, black);';
19 div.style = 'offset-rotate: 0;';
20 div.style = 'transform: skewX(0);';
21 assert_false(isCounted(),
22 'non filter should not be counted');
23
24 div.style = 'filter: hue-rotate(0deg);';
25 assert_false(isCounted(),
26 '0deg should not be counted');
27
28 div.style = 'filter: hue-rotate(0);';
29 assert_true(isCounted(),
30 '0 should be counted');
31 }, 'angle 0 is use counted for filter');
32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698