forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <>
Subject Re: title attribute in css links
Date Thu, 01 Jun 2006 11:17:01 GMT
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" 
      <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;

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 


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:
> 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 

View raw message