Bug 41381 - Suppress CodeMirror warnings for CSS
Summary: Suppress CodeMirror warnings for CSS
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-04 21:09 UTC by Lucas Gass (lukeg)
Modified: 2025-12-05 17:39 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2025-12-04 21:09:54 UTC
In CodeMirror, a warning is shown if you use more modern CSS. For example:

li:has(#checkprevcheckout) {
    display: none;
}

This is valid, but CodeMirror displays a warning. Same for nested CSS:

.thing1 {
    .thing2 {
         display: none;
    }
}

Also valid, but it recreates warnings that would make you think otherwise.
Comment 1 Lisette Scheer 2025-12-05 17:39:37 UTC
Do we need to update to a newer version of codemirror? V6 appears to support this modern CSS