CSS3 in xenForo?

F

Floris

Guest
Right click the page, and view the source code.

HTML5/CSS3 is being used where logical.
 
ok but, what happens then with the most used browser worldwide (unfortunately) that does not support css3 and less html5? I speak of internet explorer.
 

Rhydian

Active member
You could try load the page in internet explorer. But if you can for some reason do that then heres a quick screen
 

James

Well-known member
XenForo intelligently uses CSS3 and HTML5 where appropriate. If browsers do not support it, they ignore it and don't have the luxury of feeling the beauty of XenForo ;)
 

Brandon_R

Guest
ok but, what happens then with the most used browser worldwide (unfortunately) that does not support css3 and less html5? I speak of internet explorer.
There is a "fallback" system in place for those.

The current principle is - Those who supports it shall see it, those who don't shan't.
 
F

Floris

Guest
It's not a fallback system, it's just how CSS works. Browsers won't render what isn't supported, but coding css3 there where if the browser doesn't support it, it doesn't break the design, is basically the fallback. However, I am sure some elements are put in place to help IE support specifically, but which site doesn't do that.
 

Brandon_R

Guest
It's not a fallback system, it's just how CSS works. Browsers won't render what isn't supported, but coding css3 there where if the browser doesn't support it, it doesn't break the design, is basically the fallback. However, I am sure some elements are put in place to help IE support specifically, but which site doesn't do that.
Yeah, that's basically what i meant.
 
Well basically CSS3 is not the problem, since not see rounded-corners and shadows is not important. But what happens to html5? Because we know that IE8 does not support it, how xenForo replaces the use of html5 for IE8? I guess that will have a script that detects the user's browser and based on that load the page or another, but only speculate. Because they do but may have problems.
 

James

Well-known member
Well basically CSS3 is not the problem, since not see rounded-corners and shadows is not important. But what happens to html5? Because we know that IE8 does not support it, how xenForo replaces the use of html5 for IE8? I guess that will have a script that detects the user's browser and based on that load the page or another, but only speculate. Because they do but may have problems.
HTML5 can be used in browsers that don't support the tags by creating the elements using JavaScript. I assume this is what Kier and Mike have done :)
 

Kier

XenForo developer
Staff member
HTML5 can be used in browsers that don't support the tags by creating the elements using JavaScript. I assume this is what Kier and Mike have done :)
To what tags are you referring? Generally speaking, we do not generate any tags with JS.
 

James

Well-known member
Oswaldo said that IE8 doesn't support HTML5 and I took a guess that you'd used JavaScript's createElement to create them - looking at your reply I guess I was mistaken :p
 

Kier

XenForo developer
Staff member
Oswaldo said that IE8 doesn't support HTML5 and I took a guess that you'd used JavaScript's createElement to create them - looking at your reply I guess I was mistaken :p
One of our requirements for the front end is that it is fully operational without Javascript. If we relied upon tags being built with Javascript, that would fall over. So we don't.
 

James

Well-known member
Ah of course, sorry I'm not all there today (I blame the alcohol). Thanks for clarifying Kier!

 
Top