Quote
siria
Of course I'm sure that they do NOT :cool: But that makes the code really more complicated and longer, and how many images may there be out there, with either only height or only width in the code? That's the question... Except for the very rare guys who are actually html-coding in text editors that can almost not happen, and those guys sure know what they are doing, except for rare glitches. But the widespread wysiwyg programs and online editors, those that I've seen all fill in the size either automatically, both width and hight, or none at all.
Anyway, with or without the height, both ways have their pro's and con's. But okay, there IS a tiny risk, and I'll post also a version with the height in it, some time soon... ;-)
I must be one of this "rare guys", because when my companions don't know why his HTML builded with "wysiwyg programs" or "online editors" don't work they come to ask me.
They don't know how work the code only known drag&drop items in a GUI.
If we could change two dummy for one smart, the world would be a better world.
Don't try too much, no one uses KM 1.5.x when we'll released KM 1.6.
Ups... "Except for the very rare guys who are ..." using Win9x.
This is your code with "height" value, is it correct? can you test it?
/* =============== BROKEN IMAGES - show all in KM1.6 (Gecko 1.9) =================
*
Recommended prefs in F2 > Page Display > Images: 1) Icons ON 3) Placeholders OFF!!
The "placeholder" pref decides whether you can see at least the Alt-Text, if an image has no size!
Test it on KM-forum or on these pages:
https://bug58646.bugzilla.mozilla.org/attachment.cgi?id=72516
http://lab.gmtplusone.com/image-placeholder/
http://mrs260.fenfanfair.com/folder/scorpio.html
*/
/* Image size is known from the page code? Show that real size as placeholder: */
img[width]:-moz-broken,
img[height]:-moz-broken,
img[width]:-moz-user-disabled,
img[height]:-moz-user-disabled {
-moz-force-broken-image-icon: 1 !important;
}
/* Image size unknown? Show no icon but Alt-Text. Put a little border around it as marker */
img:-moz-broken:not([width]),
img:-moz-broken:not([height]),
img:-moz-user-disabled:not([width]),
img:-moz-user-disabled:not([height]) {
-moz-force-broken-image-icon: 0 !important;
border: 1px solid !important;
border-color: green gold orange blue !important;
}
/* Image size unknown, and no Alt-Text either? Show a 24px placeholder, keep border: */
img:-moz-broken:not([width]):not([alt]),
img:-moz-broken:not([height]):not([alt]),
img:-moz-user-disabled:not([width]):not([alt]),
img:-moz-user-disabled:not([height]):not([alt]),
img[alt=""]:-moz-broken:not([width]),
img[alt=""]:-moz-broken:not([height]),
img[alt=""]:-moz-user-disabled:not([width]),
img[alt=""]:-moz-user-disabled:not([height]) {
-moz-force-broken-image-icon: 1 !important;
width: 24px !important;
height: 24px !important;
}
/* ================================ */
K-Meleon in Spanish
Edited 2 time(s). Last edit at 08/27/2010 09:26PM by desga2.