MozillaZine

Mozilla Now Supports All CSS1 Properties!

Thursday April 29th, 1999

David Baron, long on the scene as a champion of a proper CSS1 implementation and one of the most prolific bug-report contributors at Bugzilla has great news on CSS1 in Mozilla (and he'd be the one to know).

"The new layout engine now supports all CSS1 properties. Troy Chevalier implemented the last property, background-attachment, earlier this week. Some properties are still buggy, and one selector (the visited pseudo-class) isn't yet implemented. However, this is probably the most complete implementation of CSS1 so far, and the bug list is consistently getting shorter."


#34 Re:More than one linked stylesheet

by David Baron <dbaron@fas.harvard.edu>

Friday April 30th, 1999 2:16 PM

You are replying to this message

The HTML 4.0 spec (see <http://www.w3.org/TR/REC-…resent/styles.html#h-14.3> ) says that there are three types of external stylesheets:

1) persistent stylesheets. These are stylesheets specified without a title attribute. You can have as many of these as you want.

2) preferred stylesheets. These are stylesheets linked with rel="stylesheet" that *do* have a title attribute. Each distinct title is a separate alternate.

3) alternate stylesheets. Same as preferred, except linked with rel="alternate stylesheet"

However, there can only be one set (i.e., all having the same title) of preferred or alternate stylesheets selected at once. The spec gives rules for determining which one of the stylesheets given as preferred is actually the selected one (and thus all the others become alternate). The rules are described here: <http://www.w3.org/TR/REC-…sent/styles.html#h-14.3.2>

Therefore, if you specify linked stylesheets with *different* title attributes (note that some stylesheet links should not have a title attribute), then only the first one is used.