Capabilities-based Browser Switching
Bessie - January 23, 2009 - 07:49
| Project: | Switchtheme |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
It's tough to use the (incredibly long) browscap list, because I have no idea what are the capabilities of each browser. What I need is a simple way to say:
- If you can do proper CSS positioning without error, use this (tableless) theme
- else if you can do tables, use that (table-based) theme.
Any chance of making the theme switchable based on browser capabilities, rather than specific browser?

#1
How about expanding on that for browsers set with less than a certain screen width and whether it supports flash or not.
#2
All of the given use-cases/reasonings are error-prone, because there are much saner approaches to do conditional styling/rendering than to entirely switch to another theme.