CSS Logical Properties and Values L1 - CodeMirror

This commit is contained in:
tophf 2018-06-10 12:42:41 +03:00
parent 1619803a64
commit 44f3a79353

View File

@ -102,6 +102,56 @@
} }
Object.assign(CodeMirror.mimeModes['text/css'].propertyKeywords, { Object.assign(CodeMirror.mimeModes['text/css'].propertyKeywords, {
// CSS Logical Properties and Values L1
'block-size': true,
'border-block-color': true,
'border-block-end': true,
'border-block-end-color': true,
'border-block-end-style': true,
'border-block-end-width': true,
'border-block-start': true,
'border-block-start-color': true,
'border-block-start-style': true,
'border-block-start-width': true,
'border-block-style': true,
'border-block-width': true,
'border-inline-color': true,
'border-inline-end': true,
'border-inline-end-color': true,
'border-inline-end-style': true,
'border-inline-end-width': true,
'border-inline-start': true,
'border-inline-start-color': true,
'border-inline-start-style': true,
'border-inline-start-width': true,
'border-inline-style': true,
'border-inline-width': true,
'inline-size': true,
'inset': true,
'inset-block': true,
'inset-block-end': true,
'inset-block-start': true,
'inset-inline': true,
'inset-inline-end': true,
'inset-inline-start': true,
'margin-block': true,
'margin-block-end': true,
'margin-block-start': true,
'margin-inline': true,
'margin-inline-end': true,
'margin-inline-start': true,
'max-block-size': true,
'max-inline-size': true,
'min-block-size': true,
'min-inline-size': true,
'padding-block': true,
'padding-block-end': true,
'padding-block-start': true,
'padding-inline': true,
'padding-inline-end': true,
'padding-inline-start': true,
'text-align-all': true,
'contain': true, 'contain': true,
'mix-blend-mode': true, 'mix-blend-mode': true,
'isolation': true, 'isolation': true,
@ -115,6 +165,8 @@
}); });
Object.assign(CodeMirror.mimeModes['text/css'].valueKeywords, { Object.assign(CodeMirror.mimeModes['text/css'].valueKeywords, {
'isolate': true, 'isolate': true,
'recto': true,
'verso': true,
}); });
Object.assign(CodeMirror.mimeModes['text/css'].colorKeywords, { Object.assign(CodeMirror.mimeModes['text/css'].colorKeywords, {
'darkgrey': true, 'darkgrey': true,