[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-1631) Allow different stylesheets for different user-agents

Andy Pemberton (JIRA) jira-events at lists.jboss.org
Thu Aug 16 15:52:01 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBPORTAL-1631?page=comments#action_12372628 ] 
            
Andy Pemberton commented on JBPORTAL-1631:
------------------------------------------

Well, I still feel that this solution is over-architecting the problem but it will certainly solve the business need. I still hold that implementing this feature as you've described it into JBoss Portal will detract from its standards compliance. 

a) Agreed - this is not a security issue but does point out that using the user-agent string to target CSS may not be effective. Conditional comments do not rely on this HTTP header, so it would be harder to "lie" to them.

Anyway, it will be important to ensure that the solution will allow for feeding multiple style sheets to the various user agents. In other words, providing only one if/otherwise set would be a problem. Whereas, multiple if/otherwise blocks would allow a developer to feed a stylesheet  to all browsers, and then a 'corrective' style sheet to versions of IE.

Ah, by the way - that's a cool feature of conditional comments. If IE8 decided to stop supporting them, they would just appear as regular HTML comments. Whereas your solution will require additional processing for EVERY user agent that hits the portal site, conditional comments only make extra work occur for the bad-boy-browser - all other browsers see a comment. 

... and, no takers here on implementing the cross-platform CSS compiler. = ] 

> Allow different stylesheets for different user-agents
> -----------------------------------------------------
>
>                 Key: JBPORTAL-1631
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1631
>             Project: JBoss Portal
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Portal Theme
>            Reporter: Thomas Heute
>         Assigned To: Julien Viet
>             Fix For: 2.8 Final
>
>
> It should be possible to define several stylesheets for a theme that would be applied for different user-agents.
> Several stylesheets can be handy to respect the differences between IE versions and also with other browsers.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list