Skip to content

Commit

Permalink
Added CSS Color HDR 1
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianZ committed Jan 2, 2024
1 parent 9b8673a commit 3ddcd1d
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down
61 changes: 61 additions & 0 deletions tests/css-color-hdr-1.js
Original file line number Diff line number Diff line change
@@ -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)',
],
},
},
};

0 comments on commit 3ddcd1d

Please sign in to comment.