+1. Would be a much better approach to rounded corners.
Arty wrote:small hack for IE 7 and IE 8
--//--
For IE 7 and IE 8 if RFC I mentioned above is implemented, corners can be added by altering HTML code via JavaScript. phpBB 3.1 already has jQuery built in, so it will be easy to do:
Code: Select all
$(document).ready(function()
{
$('.oldie').find('.forabg, .panel, .forumbg, .post').prepend('<span class="corners-top"><span></span></span>').append('<span class="corners-bottom"><span></span></span>');
});
Or something like that.
--//--
Cons
IE7 and IE8 users with JavaScript disabled will not see rounded corners. I doubt there are many such users.
Actually, I suggest a JS solution shouldn't be provided at all. According to the
global statcounter IE6,7 and 8 users are rapidly decreasing in number; about 26% in january 2012. Following the current trend, i think that by the tim 3.2 is released (probably not the next year) there will be no more than 5-10% of global useage of those versions (including the expected release of IE10). Most of those users will probably know that their browser is absolete.
Therefore I propose to follow the system of
graceful degradation: users with older browsers don't get all the eyecandy they need, in this case the rounded corners. Instead they'll see rectangle corners. It has no affect at the functions or the basic display of the site, so phpBB still supports those browsers. This also prevents clutter of extra JS needed just to support some old-fashioned users that should have updated long ago.
Above message may contain errors in grammar, spelling or wrongly chosen words. This is because I'm not a native speaker. My apologies in advance.