- From: Chris Wilson (PSD) <cwilso@microsoft.com>
- Date: Mon, 17 Jun 1996 11:18:03 -0700
- To: "'Steve Knoblock'" <knoblock@worldnet.att.net>
- Cc: "'www-style@w3.org'" <www-style@w3.org>
SGML comments are now a valid way to "hide" the <STYLE> contents from non-conformant browsers, as decided by the W3C. CSS has its own commenting mechanism - basically, just use C comments ( /* like this */ ), and the stylesheet handler will ignore the contents. Right now, the stylesheet parser is expected to parse <STYLE> data that is inside SGML comments, so it's picking up "red letter day" in the example below as being part of the selector. -Chris Chris Wilson cwilso@microsoft.com -[- >---------- >From: Steve Knoblock[SMTP:knoblock@worldnet.att.net] >Sent: Monday, June 17, 1996 10:35 AM >To: Chris Wilson (PSD) >Subject: RE: LINK'ed style sheets > >One other thing, >I noticed that any comment in the <style></style> containter caused the >style sheet to not apply. >Like ><!-- red letter day --> ><style> >p { > color: red; >} ></style> > >It would help to have comments in style sheets. > >Steve > >At 04:55 PM 6/17/96 +0000, you wrote: >>You can also surround the contents of the <STYLE>-contained embedded >>stylesheet with comments, similar to the <SCRIPT> commenting procedure. >>E.g., >> >><STYLE> >><!-- >>H1 { text-decoration: underline; color: blue } >>P { color: red } >>--> >></STYLE> >> >>Planned implementation is, I believe, to apply <LINK>ed stylesheets >>automatically, but allow the user to selectively turn them off. >>Comments on this plan are welcome. >> >> -Chris >>Chris Wilson >>cwilso@microsoft.com >>-[- >> >>>---------- >>>From: mseaton@pobox.com[SMTP:mseaton@pobox.com] >>>Sent: Sunday, June 16, 1996 11:34 AM >>>To: www-style@w3.org >>>Subject: Re: LINK'ed style sheets >>> >>>http://www.w3.org/pub/WWW/Style/css/msie/link.htm: >>>> In MS IE 3.0 beta 1, a style sheet referenced through the LINK element >>>> will automatically be applied to a document. However, according to >>> ^^^^^^^^^ ^^ >>>> the specification, the LINK element should be used to refer to >>> ^^^ ^^^^^^^^^^^^^ >>>> alternative style sheets that the user can select. If you style >>>>sheets to >>>> be automatically applied, the @import .. construct within the >>>> STYLE element is better: >>> >>>Here is the actual wording: >>> >>>: Authors can use LINK elements to offer readers a choice of style >>>sheets, >>>: e.g: >>> >>>: <LINK TITLE="Old" REL=stylesheet HREF="old.style" >>>TYPE="application/dsssl"> >>> >>>: <LINK TITLE="New" REL=stylesheet HREF="new.style" >>>TYPE="application/rtf"> >>>: <LINK TITLE="Wacky" REL=stylesheet HREF="wacky.style" >>>TYPE="text/css"> >>> >>>Nowhere does it say that <STYLE> *must* be used for a style sheet to be >>> >>>automatically applied. I also feel it would be foolish to insist on >>>this, as >>><STYLE> results in the style sheet appearing as gibberish at the start >>>of the >>>page on browsers that do not support it, while <LINK rel=stylesheet> is >>>simply >>>ignored. >>> >>>-- >>>Michael Seaton (mseaton@inforamp.net) >>> >>> >> >_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > _/ City Gallery - History of Photography > > http://www.webcom.com/cityg > > _/ PhotoGen - Photography and Genealogy Mailing List > http://genealogy.org/~mangold > >_/ Member: National Stereoscopic Association > http://www.tisco.com/3d-web/nsa/nsa.htm > > Steve Knoblock > Webmaster/Listowner > knoblock@worldnet.att.net > > > >
Received on Monday, 17 June 1996 14:18:21 UTC