Later in the thread, Garvin does say that inline styles are gone with 1.5, which I have not really been playing with. At the time of that thread, YL's comment about style_fallback.css went right past me....yellowled wrote:Well, we could use /templates/default/style_fallback.css for that now that we have it, right? Garvin?Don Chambers wrote:I think both Yellowled and I have both advocated the removal of the media manager inline styles.. the problem is that many templates would then have no styling for inserted images.
YL
So today, a couple of interesting things happened.. first, I updated bulletproof with styles I recommended in the thread above.
Second thing is that I am experimenting with s9y 1.5 beta 2, inserted an image with a comment, and low and behold it is not styled the way my template styles it. Quick peek with firebug and I see another stylesheet is loading: /templates/default/style_fallback.css. So THAT'S what YL was talking about!
Now I understand the intention - many people had no styling in their template for what was being provided inline by the editor. However, this fallback stylesheet goes further than that... it begins to style things the editor never did, such as images with comments. It also picks up a bunch of other rules otherwise defined in the default template such as message classes.
This appears to be an attempt to help older templates that did not style certain things. In my case, I have some newer templates that will need to be modified because this fallback code does something my template does not specifically override. For instance, I do not use a background color on the div containing images with comments - this fallback does, so now I need to specifically override it.
A good 80-90% of these rules are the same as what are in my stylesheets, so either I leave them in both places, which makes them redundant, or I delete them from my template if they are the same... which I do not want to do because my stylesheets are organized differently.
Or, I realize I could put a style_fallback.css that had nothing in it at all into my template folder and would therefore never inherit those styles....
Regardless of knowing how to get around this, I do not like the concept one bit. We look for style.css in the template folder, and load it if it exists... if not, we load it from /default/. And now.. we do the same thing with this style_fallback.css. Every serendipity site will load a minimum of 2 stylesheets. Many - I would say most - sites already have most of these rules in their stylesheets, so they are redundant... the only ones likely to be missing are images WITHOUT comments, because those were styled by the editor. The editor did not provide inline styles for images WITH comments.
If a template is missing something - like padding or border rules for images, then that template needs to be updated. A template should not be effectively penalized because it styled these things, but perhaps did not specify something that this fallback does. I also think its silly to load a second stylesheet for this purpose... I use multiple stylesheets most of the time when it makes sense for code organization (ie, rules for navigation, rules for tabs, etc).... but each stylesheet is yet another request from the server.