JavaScript Style Sheets

1996 - 2000
dead us
in august 1996 netscape sent the w3c a stylesheet language made of javascript, where you styled a heading by assigning to document.tags.h1.fontsize instead of writing a rule for it. the committee went with css. netscape shipped jsss in communicator 4 anyway and then removed it from netscape 6. the idea that a stylesheet should be a program came back fifteen years later under a different name.

~ the eulogy ~

On 22 August 1996 Netscape Communications sent the World Wide Web Consortium a working draft called JavaScript-Based Style Sheets. The idea was in the name. The language had no rules and no declarations in it at all. You wrote JavaScript that reached into the document and set properties on it, so a heading became document.tags.H1.fontSize = "20pt". Netscape had the dominant browser at the time and good reason to think a proposal with its name on it would carry.

It did not. A rival effort had been running at the W3C since 1994 under Hakon Wium Lie and Bert Bos, and CSS level 1 became a Recommendation that December, four months after Netscape's submission. Microsoft had already shipped partial CSS support in Internet Explorer 3 in August. JSSS was never accepted as a standard and no browser outside Netscape ever implemented it.

Netscape shipped it anyway, in Communicator 4 in 1997, and went quiet about it almost immediately afterward. The company spent the rest of the version-4 era promoting CSS instead. When Netscape 6 arrived on 14 November 2000, built on the Mozilla engine, JSSS was not in it. Versions 4.0 through 4.8 are the entire run.

I got online in 1998 on a 33.6k modem, two years late to this argument and entirely on the receiving end of it. By then the answer was CSS and the only live question was how badly each browser implemented it.

~ the dossier ~

Born22 August 1996, submitted to the W3C
Peakshipped in every Netscape Communicator 4 release, 4.0 through 4.8
Killed14 November 2000, the day Netscape 6 shipped
Lifespan4 years
Made byNetscape Communications
Killed byCSS, and Netscape's own engine rewrite

~ two ways to say the same thing ~

CSS gave you h1 { font-size: 20pt; }. JSSS gave you an assignment to a property on an object, inside a <style type="text/javascript"> block, and its tag names were case sensitive where CSS did not care. The selector vocabulary was thin. There were tag names and classes, and nothing resembling a descendant selector or a pseudo-class.

What it had instead was a whole programming language. A stylesheet could calculate and branch, because the browser was executing it, and that is why JSSS turned up in early dynamic HTML work. It is also what made it fragile. A page's appearance now depended on running an interpreter, so switching JavaScript off took the design away along with the behavior.

~ the part nobody expects ~

Netscape 4's CSS support was built on top of JSSS. The browser translated CSS rules into the JavaScript equivalent internally and then ran them, which is why turning JavaScript off in Navigator 4 also turned off your stylesheet. A generation of web developers spent years cursing that browser's CSS implementation without knowing that underneath it sat the language the standards body had declined.

~ the idea came back ~

Styling by writing code, with the full language available and the stylesheet computed at runtime, is roughly what the JavaScript world rediscovered around 2014 under the name CSS-in-JS. The implementations are better and the reasoning is different, since the modern argument is about scoping styles to components. The shape is the same, and the version that lost in 1996 almost never gets mentioned.

~ leave a rose ~

an anonymous tribute. one rose per visitor per day.

@}-->-- ... roses left here

~ leave a wreath ~

a rose fades by morning. a wreath stays on this grave for good, with your name on it.

from $1, paid once through stripe. it keeps the graveyard running: the hosting and the nightly digging. adopt it and the headstone reads "maintained in memory by" you. the groundskeeper plants new wreaths at the next tending, usually within a day.

» one email a week: new graves and the anniversaries of the dead. subscribe

~ leave a note ~

visitors before you have left these graveside notes. anonymous welcome.

other media formats: Sony CV-2000, PlayTape, Fidelipac, Video for Windows

also died in the 2000s: MOPy fish, Mininova, Value America

« previous  ·  random  ·  next »