Skip to content

Commit a2e86b6

Browse files
orionleemarijnh
authored andcommitted
[css mode] Add missing standard property names per MDN
1 parent def6f5b commit a2e86b6

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

mode/css/css.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,9 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
504504
"list-style-image", "list-style-position", "list-style-type", "margin",
505505
"margin-bottom", "margin-left", "margin-right", "margin-top", "marks",
506506
"marquee-direction", "marquee-loop", "marquee-play-count", "marquee-speed",
507-
"marquee-style", "max-block-size", "max-height", "max-inline-size",
507+
"marquee-style", "mask-clip", "mask-composite", "mask-image", "mask-mode",
508+
"mask-origin", "mask-position", "mask-repeat", "mask-size","mask-type",
509+
"max-block-size", "max-height", "max-inline-size",
508510
"max-width", "min-block-size", "min-height", "min-inline-size", "min-width",
509511
"mix-blend-mode", "move-to", "nav-down", "nav-index", "nav-left", "nav-right",
510512
"nav-up", "object-fit", "object-position", "offset", "offset-anchor",
@@ -541,7 +543,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
541543
"text-height", "text-indent", "text-justify", "text-orientation",
542544
"text-outline", "text-overflow", "text-rendering", "text-shadow",
543545
"text-size-adjust", "text-space-collapse", "text-transform",
544-
"text-underline-position", "text-wrap", "top", "transform", "transform-origin",
546+
"text-underline-position", "text-wrap", "top", "touch-action", "transform", "transform-origin",
545547
"transform-style", "transition", "transition-delay", "transition-duration",
546548
"transition-property", "transition-timing-function", "translate",
547549
"unicode-bidi", "user-select", "vertical-align", "visibility", "voice-balance",
@@ -553,11 +555,11 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
553555
"flood-opacity", "lighting-color", "stop-color", "stop-opacity", "pointer-events",
554556
"color-interpolation", "color-interpolation-filters",
555557
"color-rendering", "fill", "fill-opacity", "fill-rule", "image-rendering",
556-
"marker", "marker-end", "marker-mid", "marker-start", "shape-rendering", "stroke",
558+
"marker", "marker-end", "marker-mid", "marker-start", "paint-order", "shape-rendering", "stroke",
557559
"stroke-dasharray", "stroke-dashoffset", "stroke-linecap", "stroke-linejoin",
558560
"stroke-miterlimit", "stroke-opacity", "stroke-width", "text-rendering",
559561
"baseline-shift", "dominant-baseline", "glyph-orientation-horizontal",
560-
"glyph-orientation-vertical", "text-anchor", "writing-mode"
562+
"glyph-orientation-vertical", "text-anchor", "writing-mode",
561563
], propertyKeywords = keySet(propertyKeywords_);
562564

563565
var nonStandardPropertyKeywords_ = [
@@ -725,8 +727,7 @@ CodeMirror.defineMode("css", function(config, parserConfig) {
725727
var maybeEnd = false, ch;
726728
while ((ch = stream.next()) != null) {
727729
if (maybeEnd && ch == "/") {
728-
state.tokenize = null;
729-
break;
730+
state.tokenize = null; break;
730731
}
731732
maybeEnd = (ch == "*");
732733
}

0 commit comments

Comments
 (0)