Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE11 is missing User Agent Style for main element (display: block;)

Apparantly IE11 doesn't have a User Agent Style for <main> and therefor no display: block; on it. Why is there no User Agent Style? Is this a bug or on purpose?

Adding display: block; to the main element is enough, tho.

like image 652
kleinfreund Avatar asked Nov 20 '13 11:11

kleinfreund


1 Answers

The main element is indeed not fully supported by IE11. Adding main { display: block; } to your CSS is the best solution for IE9+. You don't need to make conditional comments - since display: block; is the default behavior for main elements, it won't mess up anything.

like image 151
EnKaa89 Avatar answered Sep 22 '22 23:09

EnKaa89