#43840 closed defect (bug) (duplicate)
CSS variables are flagged as errors in Theme Editor
Reported by: | kandb | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Editor | Keywords: | |
Focuses: | Cc: |
Description
When using theme-editor.php to edit CSS, Our code shows "There is x error which must be fixed before you can update this file." when using variables in :root
eg, the following code has an error with 'Expected RBRACE...'
:root {
--redpink: #f05562;
}
Change History (2)
Note: See
TracTickets for help on using
tickets.
It's not that
:root
is considered an error.The problem is that it doesn't know about CSS Custom Properties. That means that although this ticket came before #44471, it doesn't have the comments that that one does, but it's the same thing, so I'm going to close this as duplicate.