Skip to content

Commit 5bff550

Browse files
orionleemarijnh
authored andcommitted
[css] add missing 1) property all, 2) media feature prefers-color-scheme
1 parent 68d4da2 commit 5bff550

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

mode/css/css.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -442,17 +442,18 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
442442
"monochrome", "min-monochrome", "max-monochrome", "resolution",
443443
"min-resolution", "max-resolution", "scan", "grid", "orientation",
444444
"device-pixel-ratio", "min-device-pixel-ratio", "max-device-pixel-ratio",
445-
"pointer", "any-pointer", "hover", "any-hover"
445+
"pointer", "any-pointer", "hover", "any-hover", "prefers-color-scheme"
446446
], mediaFeatures = keySet(mediaFeatures_);
447447

448448
var mediaValueKeywords_ = [
449449
"landscape", "portrait", "none", "coarse", "fine", "on-demand", "hover",
450-
"interlace", "progressive"
450+
"interlace", "progressive",
451+
"dark", "light"
451452
], mediaValueKeywords = keySet(mediaValueKeywords_);
452453

453454
var propertyKeywords_ = [
454455
"align-content", "align-items", "align-self", "alignment-adjust",
455-
"alignment-baseline", "anchor-point", "animation", "animation-delay",
456+
"alignment-baseline", "all", "anchor-point", "animation", "animation-delay",
456457
"animation-direction", "animation-duration", "animation-fill-mode",
457458
"animation-iteration-count", "animation-name", "animation-play-state",
458459
"animation-timing-function", "appearance", "azimuth", "backdrop-filter",

0 commit comments

Comments
 (0)