[Bug] @font-face accidental prefixing
See original GitHub issueBefore
.class-selector
@font-face
font-family: 'icons'
@keyframes inv-ajax-loader-spin
0%
transform: scale(1) rotate(0deg)
50%
transform: scale(1.2) rotate(180deg)
100%
transform: scale(1) rotate(360deg)
After
@font-face {
.class-selector {
font-family: "icons"; } }
@keyframes inv-ajax-loader-spin {
0% {
transform: scale(1) rotate(0deg); }
50% {
transform: scale(1.2) rotate(180deg); }
100% {
transform: scale(1) rotate(360deg); } }
/*# sourceMappingURL=icons.css.map */
Correct
@font-face {
font-family: "icons"; }
@keyframes inv-ajax-loader-spin {
0% {
transform: scale(1) rotate(0deg); }
50% {
transform: scale(1.2) rotate(180deg); }
100% {
transform: scale(1) rotate(360deg); } }
/*# sourceMappingURL=icons.css.map */
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Not allowing pages to choose their own fonts breaks with icon ...
Currently, unless "use own fonts" is turned off, we will > download any webfonts that are called for by the font-family property, >...
Read more >System Font Stack | CSS-Tricks
Method 1: System Fonts at the Element Level. Chrome and Safari have recently shipped “system-ui” which is a generic font family that can...
Read more >CSS Fonts Module Level 4 - W3C
Abstract. This specification defines modifications to the existing CSS Fonts 3 specification along with additional features.
Read more >fix(list): add font-family style to subheader by chouclee · Pull ... - GitHub
Fixes #1777.
Read more >SPCAF | CSL308816: Use bulletproof font face in CSS
This rule is aimed at preventing 404 errors in Internet Explorer 8 and earlier due to a bug in how web font URLs...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@martinoppitz If you’re willing to volunteer in perpetuity to maintain a list of all CSS at-rules that cannot contain style rules, as well as test cases for that logic and the code to implement it across the three major implementations, then we can add this feature. But I’m not willing to allocate my time to perpetually chasing CSS specs any more than necessary.
Compare with less (https://lesstester.com)
After