Bug 41381

Summary: Suppress CodeMirror warnings for CSS
Product: Koha Reporter: Lucas Gass (lukeg) <lucas>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low CC: lisette
Version: Main   
Hardware: All   
OS: All   
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:

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