[
http://jira.jboss.com/jira/browse/JBPORTAL-1631?page=comments#action_1237... ]
Thomas Heute commented on JBPORTAL-1631:
----------------------------------------
a) anything in the header can be false, but what the point ? This is not a security issue.
You can also lie to the IE conditional comments.
b) no, i am not necessarly talking about a simple mapping, but regular expressions, and
default to some stylesheet anyway.
"CSS should be written according to the W3 CSS specifications;" it reminds me an
idea of julien to write this standard CSS and create a compiler for different browser but
that's a big project as a whole :) (any contributor interested ?)
"isn't IE's conditional comment system an example of targeting CSS to a
specific user agent? "
You read in my mind :)
From my experience i agree that other browser support the standards in
a better way but still, you have different behavior even on the same version of FF on
Windows or Linux (try the dashboard DnD to have that confirmation). Also you may want a
stylesheet for Opera on a computer and Opera on a Nintendo Wii.
Again, the idea is to allow rules like:
If (user-agent is IE <5.5) use CSS a
If (user-agent is IE = 6) use CSS b
If (user-agent is another version of IE) use CSS c
If (user-agent is opera on a wii) use CSS d
otherwise use CSS e
That said, this is not done, but really i think it's the cleaner way. Who knows what
Microsoft will decide for IE8 maybe they will stop supporting conditional comments.
I also hate IE ;)
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