forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gav...." <brightoncomput...@brightontown.com.au>
Subject RE: title attribute in css links
Date Thu, 01 Jun 2006 12:48:52 GMT


> -----Original Message-----
> From: Cyriaque Dupoirieux [mailto:Cyriaque.Dupoirieux@pcotech.fr]
> Sent: Thursday, 1 June 2006 7:17 PM
> To: dev@forrest.apache.org
> Subject: Re: title attribute in css links
> 
> Hi Mark,
> 
>     The css parameter accept the following information :
> 
>     * media to define the media (screen, print...) - There is a bug with
>       firefox if you specify print...
>     * rel to define if the stylesheet is alternate or not
>     * theme to define the title of the stylesheet, if several css
>       parameter specify the same theme, then all these stylesheets will
>       be used
> 
> Example :
>   <forrest:contract name="branding-css-links">
>     <forrest:property name="branding-css-links-input">
>       <css url="common.css" media="screen" rel="alternate stylesheet"
> theme="default"/>
>       <css url="leather-dev.css" media="screen" rel="alternate
> stylesheet" theme="default"/>
>       <css url="pelt.basic.css" media="screen" theme="Pelt"/>
>       <css url="pelt.screen.css" media="screen" theme="Pelt"/>
>       <css url="renard.css" media="screen" theme="Pelt"/>
>       <css url="pelt.print.css" media="print"/>
>       <css>/* Extra css */
>   p.quote {
>     margin-left: 2em;
>     padding: .5em;
>     background-color: #f0f0f0;
>     font-family: monospace;
>   }</css>
>     </forrest:property>
>   </forrest:contract>
> 
> Gives this :
> 
>   <link href="themes/common.css" media="screen" rel="alternate stylesheet"
> title="default" type="text/css" />
>   <link href="themes/leather-dev.css" media="screen" rel="alternate
> stylesheet" title="default" type="text/css" />
>   <link href="themes/pelt.basic.css" media="screen" rel="stylesheet"
> title="Pelt" type="text/css" />
>   <link href="themes/pelt.screen.css" media="screen" rel="stylesheet"
> title="Pelt" type="text/css" />
>   <link href="themes/renard.css" media="screen" rel="stylesheet"
> title="Pelt" type="text/css" />
>   <link href="themes/pelt.print.css" media="print" rel="stylesheet"
> title="pelt.print.css" type="text/css" />
> 
> 
> And everything is OK with firefox (this example comes from my last
> publish...)

I did not interpret this as what branding-css-links.ft does, so my mistake.

Is it correct that 'common.css' be an alternate stylesheet though. I thought
This a base CSS file that other files can then inherit from or override or
add to. If that was the case it should be persistent, so that it is always
used regardless of what other preferred/alternate stylesheets exist.

Not sure though!

Gav...

> 
> Salutations,
> Cyriaque,
> 
> le 01/06/2006 07:53 Mark Eggers a écrit :
> > Hello,
> >
> > Adding a second css file with branding-css-links.ft
> > does not work under Firefox, but does under IE 6.  It
> > turns out that there is a reason according to both the
> > Bugzilla comments and the W3 recommendations:
> >
> > https://bugzilla.mozilla.org/show_bug.cgi?id=223410
> > http://www.w3.org/TR/html4/present/styles.html#h-14.3.2
> >
> > Basically, the author uses a title for the preferred
> > style sheet (according to Mozilla's reading of the
> > above).  Since branding-css-links.ft adds a title
> > attribute for each css this means the first css file
> > in each page gets used and the second one gets ignored
> > by Firefox.
> >
> > Is there a use planned for the title attribute in the
> > css links?
> >
> > Thanks - Mark
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> >
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.1.394 / Virus Database: 268.8.0/353 - Release Date: 5/31/2006



Mime
View raw message