parse a few nonstandard webkit CSS properties

This commit is contained in:
tophf 2018-03-09 02:34:29 +03:00
parent 28ef5572ba
commit 32cd558dda
2 changed files with 14 additions and 0 deletions

View File

@ -105,6 +105,13 @@
Object.assign(CodeMirror.mimeModes['text/css'].propertyKeywords, { Object.assign(CodeMirror.mimeModes['text/css'].propertyKeywords, {
'mix-blend-mode': true, 'mix-blend-mode': true,
'isolation': true, 'isolation': true,
// nonstandard https://compat.spec.whatwg.org/
'box-reflect': true,
'text-fill-color': true,
'text-stroke': true,
'text-stroke-color': true,
'text-stroke-width': true,
// end
}); });
Object.assign(CodeMirror.mimeModes['text/css'].valueKeywords, { Object.assign(CodeMirror.mimeModes['text/css'].valueKeywords, {
'isolate': true, 'isolate': true,

View File

@ -603,6 +603,13 @@ self.parserlib = (() => {
// Z // Z
'z-index': '<integer> | auto', 'z-index': '<integer> | auto',
'zoom': '<number> | <percentage> | normal', 'zoom': '<number> | <percentage> | normal',
// nonstandard https://compat.spec.whatwg.org/
'-webkit-box-reflect': '[ above | below | right | left ]? <length>? <image>?',
'-webkit-text-fill-color': '<color>',
'-webkit-text-stroke': '<border-width> || <color>',
'-webkit-text-stroke-color': '<color>',
'-webkit-text-stroke-width': '<border-width>',
}; };
//endregion //endregion