forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: title attribute in css links
Date Thu, 01 Jun 2006 11:25:33 GMT
El jue, 01-06-2006 a las 13:21 +0200, Cyriaque Dupoirieux escribió:
> Try forrest run and 
> http://localhost:8888/ls.contracts.html#common-branding-css-links
> The documentation of the contract is very clear (I have made it ;-) )

:)

jeje, yeah actually IMO this documentation is one of the best we have
regarding contract documentations. 

Good work Cyriaque, but maybe Mark want to comment on which parts are
not clear.

salu2

> Cyriaque,
> 
> le 01/06/2006 13:17 Cyriaque Dupoirieux a écrit :
> > 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...)
> >
> > 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
> >>
> >>   
> >
> >
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message