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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/usecounter-angle-zero-custom.html

Issue 2917573002: CSS Custom Properties: Angles do not support unitless 0 (Closed)
Patch Set: remove obsolete test 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/css/usecounter-angle-zero-custom.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/usecounter-angle-zero-custom.html b/third_party/WebKit/LayoutTests/fast/css/usecounter-angle-zero-custom.html
deleted file mode 100644
index 4faad68feac0e6dfe253e8b7615443a726a9f0d3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/css/usecounter-angle-zero-custom.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<script>
-'use strict';
-
-test(() => {
- let UnitlessZeroAngleCustomProperty = 2006; // From UseCounter.h
-
- let isCounted = () => internals.isUseCounted(document, UnitlessZeroAngleCustomProperty);
- var div = document.createElement('div');
-
- // These values are invalid.
- div.style = 'image-orientation: 0;';
- div.style = 'rotate: 0;';
- div.style = 'offset-path: ray(0 closest-side);';
- // These properties have their own counters.
- div.style = 'filter: hue-rotate(0);';
- div.style = 'background-image: linear-gradient(0, red, black);';
- div.style = 'offset-rotate: 0;';
- div.style = 'transform: skewX(0);';
- assert_false(isCounted(),
- 'non custom property should not be counted');
-
- CSS.registerProperty({
- name: '--degrees',
- syntax: '<angle>',
- initialValue: '0deg',
- });
- assert_false(isCounted(),
- '0deg should not be counted');
-
- CSS.registerProperty({
- name: '--unitless',
- syntax: '<angle>',
- initialValue: '0',
- });
- assert_true(isCounted(),
- '0 should be counted');
-}, 'angle 0 is use counted for custom property registration');
-</script>

Powered by Google App Engine
This is Rietveld 408576698