Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Stupid things that make you want to walk into the w3c with a gun... The irony of it all
lech
✭
Fair warning, what you're about to read might be completely inane. Ok, it's known that the xhtml/css specs are out there to promote accessibility, and to some extent backwards compatibility through xml fallbacks. If I'm wrong, sue me, I'm writing this more out of frustration, so just bear with me for now. So from this standpoint, things are fine, clean source, no font tags raping 50% of your document, simple to manage styles across via one css file for all your documents, ok.
So here's my scenario, albeit mildly stupid, it's one of those things which would after a while make you question whether or not these people even know what they're thinking when they write some of these specs. I don't completely blame the folks behind these wonderful specs, but you have to wonder whether any serious consideration was taken when assigning validity to a couple proprietary tags first introduced by IE back in the day. Yes, IE, you read that correctly, hate it as we will, there's some pretty standard stuff which now most browsers treat as ultra-basic for compatibility and overall general offerings.
So here's the scenario, I'm cooking up a radio page for a shoutcast server (ok, given I'm already screwing the deaf folks with this one), but I created my style in such a way that some "now playing" titles are way too long, even at 10-12 pt while maintaining clairity on screen at a higher res. Yes, I'm a 1600x1200 whore too. Regardless, the layout looks nice, simple, but that "now playing" title was wrapping all ugly-like 2-3 lines on extremely long titles breaking layout even though it's partly fluid. Quick idea: marquee! hell, even your media players use it and it looks nice most of the time, right? Ok, I'm not talking about those pages from 1995, with the lime green background with just "OMG ROFL" blinking and scrolling across the page being useless. This is just a simple song title.
Quick reference to the w3c and a few google searches later, the <marquee> tag is invalid across nearly every xhtml/html spec and css hardly has any support for it. Crud, ok, I should have known that. Now my title is going to look like a god damn optomitrists eye chart /me throws accessibility for those visually impared but who can still hear out the window. The options: invalid markup, or even more inaccessible content by piling on some 40 lines of javascript just so i can have a god damn ticker-style song title nicely scroll across the page. So, <marquee> or <script language="javascript"... assload of cdata tags or maybe some flash to really fuck with them, hmmm decisions?
The deaf are already screwed since they can't hear the music that's obvious, but at least they could see a nice semi-scrolling ticker to see what's playing. Now, anyone who's blind with a screen reader should surely be able to parse a <marquee> tag vs JS or flash, right? So the question to the w3c, why the hell invalidate it at all? It's not like I'm intentionally creating a page to set off epileptics with the mother of all blink tags! It's actually a quite useful tag if used correctly under the correct context, all while maintaining that which you're already aiming for: ACCESSIBILITY... THAT, and nearly any browser you pick out (probably screen readers too) compiled this or last year (or even long before that, which aren't IE) support it and have supported it for quite some time! Even some CSS3 specs are slated to support marquee elements in the future (I think that's right, yeah, you can correct me on that one). So I think at this point I'm just going to screw myself by using this marquee tag conditionally, unless I can find some xhtml compatable work-around which doesn't require JS, Flash or some other bloat I have to add to my page.
THANKS W3C, YOU BLOW! Love,
Lech
P.S. Don't read and interpret any of this as me trying to intentionally screw the deaf, blind, or epileptic folks in any way, really, I don't want to screw anyone over. I just like the god damn page to validate while remaining lite(tm)! GRRRR!
0
This discussion has been closed.
Comments
Lack of validity won't make your shiny new website explode. That being said, there are better ways to do it than with a marquee...
Oh, and for the record, both methods should work fine in IE7; sibling selectors and :after have been added. I used to think so too, but while reading through Mark's CSS for the accounts page, I discovered something interesting: Absolutely positioned elements without position properties are removed from the document flow, but remain in the location they would have been had they been flowed normally. This is vaguely implied by one example in the spec, but is never explicitly spelled out.
Since it's already completely outside of the document flow, it can't be terribly hard just to move it a few pixels left or right. Whenever you have to resort to an ugly hack, you're either trying to cover up for a badly designed browser, or a badly designed spec. In this case, it isn't the browser.
Mainly, it's just a hassle.
Sometimes, though, it would be nice to take that element and bump it 10px up. I can fake it with negative margins, but that's not really guaranteed to work everywhere. Interesting; I wonder why that specifically was cut. I can't see how it would be worse than a sibling selector.
And anyway, specific browser optimizations are not the business of the spec.
I still see abs/rel position as completely exclusive and not sure why you'd want to combine the two. Despite some of the comments above, and knowing that I'm not sure of your usage, I would still recommend some floats and clears to achieve it.
Well that's just me, anyway... :P