Skip to content

Commit

Permalink
fix(customMQ): extend --HDcolor media query with color-gamut check (#444
Browse files Browse the repository at this point in the history
)
  • Loading branch information
cbontems authored Dec 7, 2023
1 parent 8d71439 commit 559c91b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docsite/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3352,7 +3352,7 @@ <h5>Capability Vars</h5>
@custom-media --pointer (hover) and (pointer: coarse);
@custom-media --mouse (hover) and (pointer: fine);

@custom-media --HDcolor (dynamic-range: high);
@custom-media --HDcolor (dynamic-range: high) or (color-gamut: p3);
</code></pre>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/props.media.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@custom-media --portrait (orientation: portrait);
@custom-media --landscape (orientation: landscape);

@custom-media --HDcolor (dynamic-range: high);
@custom-media --HDcolor (dynamic-range: high) or (color-gamut: p3);

@custom-media --touch (hover: none) and (pointer: coarse);
@custom-media --stylus (hover: none) and (pointer: fine);
Expand Down
2 changes: 1 addition & 1 deletion src/props.media.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const CustomMedia = {
"--portrait": "(orientation: portrait)",
"--landscape": "(orientation: landscape)",

"--HDcolor": "(dynamic-range: high)",
"--HDcolor": "(dynamic-range: high) or (color-gamut: p3)",

"--touch": "(hover: none) and (pointer: coarse)",
"--stylus": "(hover: none) and (pointer: fine)",
Expand Down

0 comments on commit 559c91b

Please sign in to comment.