
CSS Turns 10 Years Old 176
An anonymous reader writes "Cascading Style Sheets celebrate their tenth anniversary this week. The W3C put together the CSS10 site in recognition of this milestone with a Hall of Fame, essays from the past decade, a gallery, and more." I was glad to see the CSS Zen Garden selected for the Hall of Fame, and disappointed (but not surprised) that no browser on my computer correctly renders the Acid2 test.
ACID2 Compliance (Score:5, Interesting)
Time to get a new computer [apple.com].
Here's a list [wikipedia.org] of ACID2 compliant browsers. It's longer than one might think.
Re:ACID2 Compliance (Score:4, Informative)
Heck, chances are Opera [opera.com] will run on his current computer.
Isn't it interesting, though, that most of the Acid2-compliant browsers are either Mac or Unix-based? I suppose that has to do with the fact that most Windows-only browsers just embed the IE rendering engine, and most cross-platform browsers use Gecko (here's to Gecko 1.9 passing Acid2 when it's finished!). That basically leaves KHTML and Webkit, which are firmly entrenched in *nix and MacOS respectively, and a couple of independent engines: Opera (cross-platform) and iCab (Mac).
Re: (Score:2)
Can be, yes -- there's even a Windows KHTML browser in early alpha stages called Swift -- but practically speaking, most KHTML browsers today are running on *nix platforms, and most Webkit browsers are on Mac OS X. Yes, you can run a non-Webkti KHTML browser on Mac OS X, but Webkit is available right there. And IIRC someone ported Webkit to GTK to run it on cell phones (Nokia?), but for
Re:ACID2 Compliance (Score:5, Funny)
I use Firefox for day to day browsing. But every so often, when I find the need to view the sublime smiley face image in all its glory, I fire up Safari for just that. It serves my needs, since I really only need to see the smily image maybe once a day or so.
Re:ACID2 Compliance (Score:5, Insightful)
Re:ACID2 Compliance (Score:4, Funny)
Step 1: Retrieve Acid2 HTML
Step 2: Completely ignore it and display a screen shot of the correct rendering
Re: (Score:2)
Re: (Score:3, Funny)
Re: (Score:2)
Opera got cheeky and did something similar, albeit after passing: http://files.myopera.com/chuanz/files/acid2.png [myopera.com]
Re: (Score:2)
Re:ACID2 Compliance (Score:5, Insightful)
This nicely demonstrates the fact that Acid2 is not a CSS compliance test (something which I've seen claimed in many discussions). If Opera 9 and Safari 2 can both pass Acid2, but Opera 9 has broader and/or less buggy CSS support, then Acid2 cannot tell you the overall level of compliance.
It's important to remember what Acid2 is: namely, a wish list for web developers. It's a bunch of features that developers would like to use, but which had (until recently) limited, buggy, or just plain no support in major browsers. The prestige of passing Acid2 (and, conversely, the shame of not passing it) was supposed to motivate browser developers to essentially fill in the corners of their CSS support, making it feasible for web developers to start using more of their toolboxes.
It's taken time, but it's succeeded, with one notable "we don't care, we don't have to" exception: Internet Explorer. Of the four major engines, KHTML and Opera have it, and Gecko is getting it soon. And the biggest player on the block seems to be doing its best to prevent us from actually using our tools if we want the majority of web surfers to see our sites as designed.
Re: (Score:2)
Re: (Score:2)
And apparently, if you're at all representative, the ones with no sense of irony...
Good but not all there yet. (Score:2)
I wish the standards would be realistic and just realize that no browser is ever going to be 100% perfect in how it renders a page and that in some cases the standard isn't going to be perfect either. I hate to praise IE but IE has a way to only load certains stylesheets for IE or even certain ver
Re: (Score:2)
You mentioned CSS3, so you may be aware of this already, but CSS media queries [virtuelvis.com] will eventually do this. AFAIK, Opera is still the only browser with even experimental support for them, though.
Re: (Score:2)
Delivering differentiated content to work around buggy user-agents is a function of the transport protocol, not something you want to replicate for each and every file format delivered over that protocol. It is built into the standard - the right standard for this, HTTP. I quote from
Re: (Score:2)
Re: (Score:2)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20061219 Minefield/3.0a2pre
Re: (Score:2)
You might want to recheck that. I personally ran Safari 2.0.4 through the ACID2 test before posting. It's fully compliant*. If you're seeing anything other than the exact same image shown by the ACID2 reference, then there's a problem with your Safari install.
* The nose even lights up! Whee!
Re: (Score:2)
10 years old... (Score:5, Interesting)
Re: (Score:3, Insightful)
Re:10 years old... (Score:4, Interesting)
Maybe that's not only because browser developers have been lazy (IE) or preoccupied with rewriting the browser from the ground up (Netscape/Firefox) for the past 8.5 years, but also because CSS 2.0 is a convoluted, sloppily designed specification?
Re:10 years old... (Score:5, Informative)
Correct. Honestly, I don't really ever want to see an -actively pushed-, and considered "standard" specification proposition go out without a reference implementation. Sit down, agree to a specification, propose it, then make a reference implementation, THEN start pushing it.
When you look at most successful specs, from videocard chipsets, to Java specifications, they come with a reference implementation: this makes sure that everything makes sense in -practice-, not just in theory. With CSS, it is all about theory, without real world tests.
The only reason it got pushed as standard, is because the web evolved too fast for its own good, and no one realised what was happening before it was too late, to propose an alternative to CSS.
Re: (Score:2)
On the contrary, some of the most frequently complained about shortcomings of CSS are due to the desire to keep implementations simple, which is practically the opposite of being "all about theory". They purposefully left out things like a decent query mechanism because they considered it too hard for people to implement.
Re: (Score:2)
Makes sense. However, looking at the specs, its too simple to pass a real world usuability test (aka: do what my customers want it to do), yet too convoluted to be implemented properly
Re: (Score:2)
Yeah, that's really a pain in the neck, particularly for for designers, but again, it's a limitation brought about by the desire to make it easy to implement rendering engines. If you look at a lot of the things that match your description, you'll
Re: (Score:2)
The reason WHY they made CSS the way it is, makes a lot of sense, I'll give you that. However, they failed. The browser already has to be aware of a ton more things, for DOM, javascript, etc. So CSS's implementation helps...cellphones. Thats about it...
The only thing in the spec that makes sense put in perspective, as someone
Re: (Score:2)
Sorry, I left out the scare quotes around "only."
Re: (Score:2)
As for CSS 2 being 8.5 years old, that's 3,192.5 days. If we assume a programmer can spend 8 hours a day, that gives us 24,820 workable programming hours since the spec came out, per programmer. Sure, outside of F/OSS (and Electronic Arts) no programmer is going to work 365 days a year, but then very few companies are going to allocate just one programmer
A little ironic? (Score:5, Funny)
Re: (Score:2)
I've noticed that almost all log-living websites have such a blank desing
Re: (Score:2)
Fitting? Yes.
Re: (Score:2)
And apparently (Score:2, Redundant)
It just works! (Score:2, Informative)
You're clearly not using a mac [slashdot.org].
Wow! (Score:5, Funny)
*IE8 is expected to debut sometime in late 2018.
Re: (Score:2)
Re:Wow! (Score:5, Funny)
Re: (Score:2)
They're not interested in giving out their browser, so much as forcing obselensence to sell copies of the new OS. Funny how their browser was only free long enou
Re: (Score:2)
Same with security patches... even if it's a pirated copy of windows, having it unsecure harms everyone. And for a company that had no problem with piracy when it was doing them good, to turn around and pull this stunt, well, it's pretty damn low. Even for them.
Has IE suddenly started to cost money without me noticing?
Yes. If it is tied to a W
Re: (Score:2)
I take it you haven't been following news about IE7? Or did I miss something and it's got some major bug in its alpha channel support?
Re: (Score:2)
Re: (Score:2)
10 years (Score:5, Funny)
Re: (Score:3, Insightful)
The problem is systemic. (Score:2)
CSS follows this model, to keep things from horribly breaking when a browser decides to turn off some CSS feature or substitute a stylesheet for print preview or what have you.
Saying that some container should expand to an arbitrary size that hasn't been determined yet breaks the model. That becomes especially problematic when you nest a series of parent-relative
Re: (Score:3, Informative)
i dont remember the specifics of it, but i ran into this problem last year trying to set height=100% on a table. when it didnt work, i hunted down the reason: apparently, proper HTML has never had height=100% as a valid value for a table. the w3c explained that tables were never meant to be used for layout, but only for displaying tabular data.
Re: (Score:2)
So in the same way in other environments we have "data tables", to display tabular data, and "table layout" to do what tables
Re: (Score:2)
Re: (Score:2)
Then why don't you share your genius with us, oh great AC?
Re:10 years (Score:4, Informative)
Really? Only HTML and CSS? No table and no javascript messing around rewriting the document?
In what way is table not HTML?
? Surely? (Score:2)
Re: (Score:2)
<pedant>
Your HTML isn't properly formatted, it should be </div>, not </rant>
</pedant>
Re: (Score:2)
Re: (Score:2)
and tell the browser to render it like a table :P
http://www.csszengarden.com/ (Score:2, Funny)
Come on guys, it might be valid CSS, but it is not easy on the eyes.
Re: (Score:2)
Re: (Score:3, Interesting)
In case you didn't, here [csszengarden.com] are [csszengarden.com] a few [csszengarden.com] examples [csszengarden.com].
The point of the site is to illustrate how the exact same HTML file can be displayed in an infinite number of ways by simply changing the CSS. The site is essentially an argument for a semantic Web.
Schwab
Uh oh (Score:4, Interesting)
#navigation li Invalid number : text-shadow Property text-shadow doesn't exist : 0 2px 4px #000
Re:Uh oh (Score:4, Informative)
The W3C's CSS validator has recently been changed to check against CSS 2.1 by default instead of CSS 2. The text-shadow property was removed from CSS 2.1 because virtually no browser developers bothered to implement it. The stylesheet is still a valid CSS 2 stylesheet, but you wouldn't know that because nobody's bothered to come up with a way of labelling stylesheets to denote what level of CSS they are meant to conform to.
10 years of "how come" (Score:2)
Gah! Ten? (Score:2)
Re: (Score:3)
Sadly, I think there is only 1 kind.
CSS turns 10, typographers still crying (Score:2)
Even if browsers were to finally properly support tracking, x-height controls, etc., CSS is still obnoxiously rudimentary in comparison to the
Re:CSS turns 10, typographers still crying (Score:4, Interesting)
I can't wait either.
Re: (Score:3, Interesting)
That said, yes, properly styled and typeset text needs to live and accessible. It's currently not (at least in any practical form), and that's the problem.
Re: (Score:2)
Now, the very best typographers and graphic designers are the ones who will sepe
Re: (Score:2)
You're ranting about the exact same thing I'm ranting about, current typesetting conventions.
The current convention, more or less consists of typeset text which is generally not live or accessible (ie can't select / copy / use with universal access software), or live / accessible text which can only be typeset in rudimentary ways. This is bad. You shouldn't need to use im
Usable positioning in another 10? (Score:5, Insightful)
I did the CSS -showcase thing a few months ago and about 10% of the layouts by the CSS Masters of the Universe fit the above criteria. It may not be impossible, but the bar's too high.
Re: (Score:2)
My first reaction to this is: I don't think this is a problem with CSS. Maybe there is a problem with implementations, or with webmasters doing things the wrong way. Am I missing something?
Re: (Score:2)
Yes and in 10 Years (Score:4, Insightful)
Re: (Score:2)
Who the heck is behind this "table is dead" mentality? Personally, I dislike CSS. It leaves guys like me in the cold. What do I mean? In my experience CSS isn't as easy or usable
Re: (Score:2)
In my experience CSS isn't as easy or usable by people who code HTML by hand- especially on a casual basis.
What the heck do you mean? I always coded all of my HTML by hand (it's not much, but it's something), and when I discovered CSS I thought that it was contrived by Jesus and designed by Moses himself. Look, ma, I can change the color of all links, on all pages on my website, by fixing this one value.
I know, I'm a lazy bastard. You guys probably just go into the Perl interaction mode and fix it with
Re: (Score:2)
Because by using a table as a stylistic and not a semantic element, you're depriving me of the ability and the choice of viewing your page without any styling at all. For a well designed page, I should be able to switch all styling off and have the content presented to me in a logical, sensible manner. If you use tables and I switch CSS off, I've suddenly got a whole bunch of information presented in a table for absolutely no reason. People aren't saying "Don't use the table", they're saying "Don't use the
Re: (Score:2)
And how does one align equations properly without tables? Or include a matrix?
How does one align equations properly with a table? Given an example of the effect that you want, someone can probably suggest a superior alternative. Possible example: http://www.xs4all.nl/~sbpoley/webmatters/superscri pts.html [xs4all.nl]
By matrix, do you mean something like
816
357
492
? Hmm...I see rows and columns. Since this is data that is *supposed* to be tabular, you would use a table for semantic reasons. By contrast, in a three column layout with a header and a footer, the data is not organized semantical
Heh, those funny typos (Score:3, Funny)
CSS validator useless (Score:2)
Yet whenever an error is spotted the resulting error message is more or less useless.
td,th,tr{
Re: (Score:2)
Perhaps you meant 'text-align [w3schools.com]'? There's no 'align' in css (and browsers don't even support it, I've tested it). Now, it basically says "align doesn't exist, you dummy. Use something el
Huh. (Score:2)
I think a huge problem is that a lot of people use CSS like they use font tags - in
Re: (Score:3, Funny)
Re:Safari has done Acid2 for more than a year! (Score:4, Informative)
works perfectly (Score:2)
Safari could not open the page "http://www.webstandards.org/action/acid2/" because the server stopped responding."
Thanks, slashdot!
Re: (Score:2)
Yup, he is probably using Windows 98 or something. Of course there is the possibility he is using Lynx on a VT100 terminal
Re: (Score:2)
It took that long? I never knew.
Re: (Score:2)
Re: (Score:2)
Because it's always fun to have to change 342 different areas/tags to make page or site wide change.
The real effect of CSS was to make web layout more complicated, so as to keep a role for programmers in web design. Otherwise, the artists would be in full control by now.
No one forces you to use CSS, if your hypothetical artist wants to they can have all the fun they want with html. Well that is until their templated editor craps out on something (I'm assuming they're not utterly stupid), they need
Re: (Score:2)
That's what Dreamweaver is for.
Slashdot has many users who like to hack on HTML/XML, but realistically, that job has been automated.
Re: (Score:2)
And artists are simply abusing the fuck out of Flash instead of bothering with html anyway, god knows it's probably easer than trying to shove together
Re: (Score:2)
The real effect of CSS (and its goal) is separation of content from presentation.
CSS is about as much programming as HTML. Ever tried to execute a stylesheet? I don't think so. Calling it a macro system proves you have no idea what you're talking about.
The only added complexity in using CSS is that it's another syntax to learn. Offsetting that is the fact that table layouts are bloated and their structure is hard to follow. CSS layouts result in leaner, cleaner documents. As they say, "It's about
It was worth it (Score:5, Insightful)
The artists DID have control for a dark time in the mid-to-late 1990s, when the Internet bubble was in the earliest stages of inflation. I like to call it the "JPEG Jigsaw Puzzle Age" of the WWW.
While I think that CSS is far from perfect (it WAS, ironically enough, inspired by a concept from Microsoft after all) I do in fact find a properly-written CSS-formatted HTML page much EASIER to follow. Back in the dark JPEG Jigsaw Puzzle age, when trying to view or parse HTML source, it was cluttered with FONT-this and IMG SRC="spacer.gif"-that and TABLEs inside TABLEs inside TABLEs containing image maps. It was absolutely DREADFUL. And no, nested DIVs are NOT the same as nested tables, because tables have rows and columns and are meant for TABULAR DATA--NOT for general structuring of content. DIVs get no more complicated (from a content perspective) than simple nesting, whereas TABLEs have specialised TR collections within them, which in turn have TDs...and COLSPAN and ROWSPAN even further complicate and confuse when used for layout purposes.
CSS is more than a formatting tool--it enables content and presentation separation as well as semantic web design. The web would be beautiful but completely unusable GARBAGE if artists were in "full control". Similarly, the web would be efficient and powereful, but ugly and arcane if programmers were in "full control" (that is, we'd probably still be messing with Gopher, Archie, WAIS or similar powerful but ugly and/or user-unfriendly systems). If the artists and programmers could cooperate properly (and development tools that make use of CSS and HTML standards more effectively enabled such cooperation perhaps) then we get balance between effective presentation and functionality.
I suppose the biggest problem with CSS, beyond inconsistent interpretation of CSS by various browsers (which isn't CSS' fault) is that it is far too easy to mis-use it, and most CSS isn't properly or effectively used (probably because artists are trying to control it
A properly designed XHTML-and-CSS page is absolutely beautiful to behold: It is attractive yet simple to navigate. It is accessible (it degrades gracefully in audio and text-only browsers, and there is no need for "printer-friendly" links--ever--so get rid of them--NOW). It is easy to manage (don't like the way it looks just change the CSS, and if you need to update the content you can do so in the XHTML with virtually no effect on presentation). It is easy to parse and very human-readable (if you properly name your elements that is--use id="navigationMenu" instead of "toprightblock" and class="articleName" instead of "bigboldblue"). Without all that TABLE/TD/TR/IMG SRC="spacer.gif"/FONT/blah blah clutter in the HTML you can easily see the document structure, links, etc...and without all the
blahblahblah
Sorry...had to get this out...sometimes I can't resist a troll...
Re: (Score:2)
You know, no one can help you if you don't see the irony in your own statements.
And TYPING IN ALL CAPS doesn't help get your supposed point across either.
Check the CSS3 Layout module proposal: it has rows and columns. Because this is what layouts are. Until CSS gains back this ability, tables will have plenty of cases where they have edge on CSS hacks.
Do you do publishing or typesetting? (Score:2)
Check the CSS3 Layout module proposal: it has rows and columns. Because this is what layouts are.
A layout is NOT a table! A table is a specific KIND of layout in a sense (it is a way to structure content as well, as in a spreadsheet or database, which is why XHTML still has a TABLE construct). You might as well say "Check out this square--it has four sides. Because this is what parallelograms are".
Layouts can be free-form (flowing) or
Re: (Score:2)
Hmm...well being this seems to come right from the horse's mouth I stand corrected...thanks Hakon. I was under the incorrect impression because if IE3 being the first kid on the block with meaningful support for CSS, while Netscape seemed to resist it in favour of their own way of doing things (which is still ironic considering Mozilla's much more dedicated efforts to support the standard today).
It is a shame that MS did not remain committed to su
Re: (Score:2)
I'm baffled and saddened that you're proud of this. Do you still have a Pentium I as your main desktop? How's that bandwidth bill treating you, since your Intarweb pages are 20% to 60% more bloated than they could be?
Re: (Score:2)
You really are an idiot if you believe that these bandwidth concerns have anything to do with the end-user (as opposed to the company, who is paying for every byte they send).
Re: (Score:2)
No, if you are thinking of the <div> element type as a replacement for the <table> element type, you're still doing it wrong. Moving to CSS isn't about replacing <table> with <div>, it's about using the most appropriate element type for the job. You only use <div> when there isn't anything more appropriate (there usually is).
One post of almost pure jibberish... (Score:3, Informative)
No.
No.
No it doesn't, it's clear already.
"Relying on the preceding line"? It does no such thing.
"Well relative to what" - simple answer - the
Re: (Score:2)
Heh, sorry. I'd had quite a few whiskys and wasn't very polite. Thanks for not being more offended by my ranting tone! :)
I usually use php