Closed (won't fix)
Project:
Edge
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Nov 2010 at 00:09 UTC
Updated:
11 Dec 2012 at 18:59 UTC
Jump to comment: Most recent file
Comments
Comment #1
jacineAwesome! Not only does this work, but it also fixes this problem: #967166: Content rendered via AJAX does not respect stylesheets removed in .info files.
Here are all the possible combinations (that I can think of) which we need to test:
Comment #2
sunThank you! Very helpful.
AFAICS, this maps into:
- use the last override definition, unless a theme later in the stack removes it.
- remove a file, unless a theme later in the stack overrides it.
Comment #3
sunIncomplete, just to post an update.
Comment #4
sunI successfully implemented stylesheets-remove, including full test coverage for the expectations you outlined in #1 in:
#575298: Provide non-PHP way to reliably override CSS
Comment #5
sunI don't think I'll have time to (re-)implement this for D7 Edge.
However, the final patch for Drupal 8 core in #575298: Provide non-PHP way to reliably override CSS contains the full-blown
stylesheets-remove[]functionality, since it was necessary to complementstylesheets-override[]with that in order to actually make sense of it.The core patch also contains full test coverage for the add/override/remove plan that @Jacine outlined in #1, for which I'm still very very thankful :)
[Usually one has to make up all kinds of expectations for tests — But writing tests for sophisticated expectations is actually fun! :)]
If anyone badly needs this and wants to backport the D8 code to D7, please feel free to re-open this issue.