Page MenuHomePhabricator

Support CSS custom properties (variables) in CodeEditor
Open, Needs TriagePublic

Description

The MediaWiki Code editor knows no CSS variables and shows errors/Warnings.

Example:

{
  --media-rollback: #B40404;
...
...

.mw-rollback-link a  {
   color: var(--media-rollback);
}

Error: Expected RBRACE at line 2, col 3.

and

Warning: Expected (<color> | inherit) but found 'var(--global-rollback)'.

Event Timeline

Aklapper renamed this task from Codeeditor Error by CSS-Variables to Support CSS custom properties (variables) in CodeEditor.Sep 25 2020, 3:15 PM
Aklapper added a project: CodeEditor.
Aklapper updated the task description. (Show Details)

For example, this code vector.css works client-side when applied, but I get warnings when editing and saving.