Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When aggregating a file with both @import and @media elements, the @import gets appended with the media query of the last seen @media.
As @import is required to be at the top of the file, they can't be inside a @media, and must then implicitly inherit the media query of the file they're in.
Patch follows.
Comment | File | Size | Author |
---|---|---|---|
#2 | advagg-import-media-2412213-2.patch | 834 bytes | Xen |
#1 | advagg-import-media-2412213-1.patch | 763 bytes | Xen |
Comments
Comment #1
Xen CreditAttribution: Xen commentedSimply copy the media query from the file, truncating "all" to nothing.
Comment #2
Xen CreditAttribution: Xen at Reload commentedForgot to check if 'media' was set.
Comment #4
mikeytown2 CreditAttribution: mikeytown2 commentedThanks for the fix! In the commit I moved the trim line so it's on the str_replace line.