type attribute on <style> is now strictly parsed


Categories: CSS, HTML

Releases: Firefox 75, Firefox 78 ESR


Starting with Firefox 75, the type attribute on the <style> element will be strictly parsed as per the HTML spec. This change unlikely affects production sites since other browsers are already following the spec, but any simple mistake could have been missed if you have previously tested your site only with Firefox.

The following <style> elements are valid:

<style type=""></style>
<style type="text/css"></style>
<style type="TEXT/CSS"></style>

The following <style> elements are invalid, so the stylesheets will be ignored:

<style type=" text/css "></style>
<style type="text/css; charset=utf-8"></style>