-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the font-family library to parse font-family property in postcss ast
Prevents the backslash from being kept in "font-family: Font Awesome\ 5 Free" Fixes #128
- Loading branch information
1 parent
35bed43
commit bc19327
Showing
4 changed files
with
56 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
@font-face { | ||
font-family: Font Awesome\ 5 Free; | ||
font-style: normal; | ||
font-weight: 400; | ||
src: url(OpenSans.ttf) format('truetype'); | ||
} | ||
|
||
.foo { | ||
font-family: Font Awesome\ 5 Free; | ||
} | ||
.bar { | ||
/* The bareword version doesn't work due to /~https://github.com/bramstein/css-font-parser/issues/6 */ | ||
font: 12px 'Font Awesome 5 Free'; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="foo">Hello!</div> | ||
<div class="bar">World!</div> | ||
</body> | ||
</html> |