Active
Project:
Drupal core
Version:
main
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2026 at 16:56 UTC
Updated:
11 Jun 2026 at 16:59 UTC
Jump to comment: Most recent
Followup from #3376622: CssCollectionGrouper should respect media property from CSS asset definition
If I add the following to my theme library's global styling
global-styling:
css:
component:
https://www.herchel.com/test.css:
media: 'all and (width > 768px)'
type: externalThe resulting greater-than symbol (>) is escaped when output to the markup
<link rel="stylesheet" media="all and (width > 768px)" href="https://www.herchel.com/test.css" />

| Comment | File | Size | Author |
|---|---|---|---|
| view-source_https___drupal-admin_ddev_site.png | 165.76 KB | mherchel |
Comments
Comment #2
andy-blumWorth looking into if that media query is also escaped for the inlined version within aggregated CSS