From 3ddcd1d2f03f0f95f310fa5157097574c2d1fd6d Mon Sep 17 00:00:00 2001 From: Sebastian Zartner Date: Tue, 2 Jan 2024 23:05:40 +0100 Subject: [PATCH] Added CSS Color HDR 1 --- tests.js | 2 ++ tests/css-color-hdr-1.js | 61 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 tests/css-color-hdr-1.js diff --git a/tests.js b/tests.js index c52bbc4..f85ce47 100644 --- a/tests.js +++ b/tests.js @@ -20,6 +20,7 @@ import cssColor4 from './tests/css-color-4.js'; import cssColor5 from './tests/css-color-5.js'; import cssColor6 from './tests/css-color-6.js'; import cssColorAdjust1 from './tests/css-color-adjust-1.js'; +import cssColorHdr1 from './tests/css-color-hdr-1.js'; import cssComposition1 from './tests/css-composition-1.js'; import cssComposition2 from './tests/css-composition-2.js'; import cssConditional3 from './tests/css-conditional-3.js'; @@ -182,6 +183,7 @@ export default { 'css-colors-5': cssColor5, 'css-colors-6': cssColor6, 'css-colors-adjust-1': cssColorAdjust1, + 'css-colors-hdr-1': cssColorHdr1, 'css-composition-1': cssComposition1, 'css-composition-2': cssComposition2, 'css-conditional-3': cssConditional3, diff --git a/tests/css-color-hdr-1.js b/tests/css-color-hdr-1.js new file mode 100644 index 0000000..e0d42a6 --- /dev/null +++ b/tests/css-color-hdr-1.js @@ -0,0 +1,61 @@ +export default { + title: 'CSS Color HDR Module Level 1', + links: { + tr: 'css-color-hdr-1', + dev: 'css-color-hdr-1', + }, + status: { + stability: 'experimental', + }, + values: { + properties: ['color', 'background-color', 'border-color', 'text-decoration-color', 'column-rule-color'], + 'rec2100-pq color space': { + links: { + dev: '#valdef-color-rec2100-pq', + }, + tests: [ + 'color(rec2100-pq 1.0 1.0 1.0)', + ], + }, + 'rec2100-hlg color space': { + links: { + dev: '#valdef-color-rec2100-hlg', + }, + tests: [ + 'color(rec2100-hlg 0.75 0.75 0.75)', + ], + }, + 'rec2100-linear color space': { + links: { + dev: '#valdef-color-rec2100-linear', + }, + tests: [ + 'color(rec2100-linear 9.852 9.852 9.852)', + ], + }, + 'Jzazbz color space': { + links: { + dev: '#Jzazbz', + }, + tests: [ + 'color(jzazbz 0.75 0.75 0.75)', + ], + }, + 'JzCzHz color space': { + links: { + dev: '#JzCzHz', + }, + tests: [ + 'color(jzczhz 0.75 0.75 0.75)', + ], + }, + 'ICtCp color space': { + links: { + dev: '#ICtCp', + }, + tests: [ + 'color(ictcp 0.5393 -0.2643 -0.0625)', + ], + }, + }, +};