Slashdot Log In
CSS Turns 10 Years Old
Posted by
kdawson
on Tue Dec 19, 2006 02:10 PM
from the celebrating-in-style dept.
from the celebrating-in-style dept.
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.
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
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).
Parent
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.
Parent
Re:ACID2 Compliance (Score:5, Insightful)
Parent
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
Parent
Re: (Score:2)
Re: (Score:3, Funny)
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.
Parent
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
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?
Parent
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.
Parent
Re: (Score:2)
Sorry, I left out the scare quotes around "only."
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.
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:Wow! (Score:5, Funny)
Parent
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)
10 years (Score:5, Funny)
Re: (Score:3, Insightful)
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?
Parent
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.
Parent
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.
Parent
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.
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.
Yes and in 10 Years (Score:4, Insightful)
Heh, those funny typos (Score:3, Funny)
Re: (Score:3, Funny)
Re:Safari has done Acid2 for more than a year! (Score:4, Informative)
Parent
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
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...
Parent
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