This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Open
This task was never closed in our old bug tracker.
Feel free to open a new task at Github if you feel this is still relevant.
FS#1987 allow more css media types
CSS, XHTML, JS, Browsers
2010-06-28ach
Currently we can only add CSS files for media types all, screen and print (if css.php and style.ini is used). Can we make this more flexible to add any media type?
Maybe we can create automatically any media type that's present in style.ini, i.e. if there is an entry "handheld.css = handheld" automatically add the handheld type ...
(The rtl type is an exception as it is no CSS media type and doesn't really belong there. Maybe we could also change the way RTL styles are implemented? E.g. add a body class to distinguish between rtl and ltr and handle changes in the "normal" stylesheets.)
2010-06-28ach
I just had a better idea ... We currently serve one "file" per media type (/lib/exe/css.php?s=<type>). We could instead serve just one file for all of them and add each media type with "@media" inside that one file, e.g.
@media print {
/* here will follow all print styles */
}
That way we'll also have less requests ...
2011-02-27ach
I added a different bug report for the rtl styles: FS#2185
This doesn't fix the issue that we still cannot have more than the given types of styles, but it puts everything into one single file using the above technique.
That is not quite true. In that PR different @media types have been implemented to be mis-used as something else. But maybe, hopefully, that PR will turn into supporting them properly.