[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-1631) Allow different stylesheets for different user-agents
Thomas Heute (JIRA)
jira-events at lists.jboss.org
Thu Aug 16 17:08:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBPORTAL-1631?page=comments#action_12372657 ]
Thomas Heute commented on JBPORTAL-1631:
----------------------------------------
Note that this solution doesn't aim at only solving the CSS compatibility issues but the different kind of browsers.
a) It's actually very easy to have a wrong behavior, try to install IE 5 and IE 6 on a same machine, both will be seen as the latest version you install (i guess it takes it from the windows registry) and the conditonal statement will be fooled. The idea of changing the user-agent is usally to fool the server to avoid some display problem. let's say you get a new for of Netscape called MyGreatBrowser, and the server is trying to send a IE CSS because it doesn't know about this new browser, then the client still has a way to "force" the Netscape stylesheet, it's a feature.
The code-like stuff i was talking about should be for all the different themes (actually it should also have a way to define no CSS for some themes on some browsers (maybe you will only have 2 themes for the Opera on the Nintendo Wii, but 10 for traditional browsers)
My example about IE8 was to say that if IE8 stop supporting this or do it in another way, you would end up with the same problem as of today, you couldn't define a special CSS for IE8.
The additional processing is really cheap, 1 parsing per session is something we can offer. (We can also argue that the other browsers also have to parse this conditional statement to ignore it).
Anyway, i am not against supporting the conditional statement, but i didn't see a little change that would make it work (i didn't look very hard). So if we need to do extra work, let's do it the good way, even more since we are re-designing the whole theme/layout support for next major versions.
Too bad for the CSS compiler :) JBoss CSS Compiler sounded like a good project name :-D
Thanks for your input, don't think i'm just against the idea, i'm trying to get the best from the original idea. I totally agree that not supporting this is a major problem for IE versions. (more than any other browser)
> 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