It would be useful to be able to specify additional options in the options array in drupal_add_css($path, $options);
Example, there is currently no way to construct something like:
<link title="23" type="text/css" rel="alternate stylesheet" media="all" href="23.css" />
One would need to be able to specify the title and rel attributes.
Comments
Comment #1
Nick Robillard commentedThis is exactly the problem I'm running into with D6. It'd be wonderful to be able to specify attributes within the $options array.
Comment #2
robloachWhat happens when this CSS file is aggregated? You'd loose these addition attributes.
Comment #3
effulgentsia commentedD7 has drupal_add_css() take an $options parameter which can have anything, there's hook_css_alter(), and the rendering of the LINK tags goes through the full rendering pipeline with lots of opportunity to customize.