-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] cssVariables: Don't use CSS vars within @font-face directives (#…
…257) Browsers do not seem to support usage of custom CSS properties (aka CSS variables) within @font-face directives. The skeleton style-sheet should therefore not contain a reference to the variables but just use the actual value provided by the LESS variable. BCP: 2270189546
- Loading branch information
Showing
12 changed files
with
116 additions
and
9 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
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 |
---|---|---|
@@ -1 +1 @@ | ||
.myRule{float:right;color:#f00} | ||
.myRule{float:right;color:#f00}@keyframes myKeyframes{0%,80%,100%{transform:scale(1)}40%{transform:scale(2)}}@font-face{font-family:"MyFont";src:url("MyFont.woff2") format("woff2")} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
:root { | ||
--myColor: #ff0000; | ||
--myFontFamily: "MyFont"; | ||
--myFontUrl: url("MyFont.woff2"); | ||
--myScale1: scale(1); | ||
--myScale2: scale(2); | ||
} |
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
@myColor: #ff0000; | ||
@myFontFamily: "MyFont"; | ||
@myFontUrl: url("MyFont.woff2"); | ||
@myScale1: scale(1); | ||
@myScale2: scale(2); | ||
|
||
:root { | ||
--myColor: @myColor; | ||
--myFontFamily: @myFontFamily; | ||
--myFontUrl: @myFontUrl; | ||
--myScale1: @myScale1; | ||
--myScale2: @myScale2; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
{ | ||
"myColor": "#ff0000" | ||
"myColor": "#ff0000", | ||
"myFontFamily": "\"MyFont\"", | ||
"myFontUrl": "url(\"MyFont.woff2\")", | ||
"myScale1": "scale(1)", | ||
"myScale2": "scale(2)" | ||
} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
{ "myColor" : "#f00" } | ||
{ "myColor" : "#f00", "myFontFamily": "\"MyFont\"", "myFontUrl": "url(\"MyFont.woff2\")", "myScale1": "scale(1)", "myScale2": "scale(2)" } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
.myRule{float:left;color:#f00} | ||
.myRule{float:left;color:#f00}@keyframes myKeyframes{0%,80%,100%{transform:scale(1)}40%{transform:scale(2)}}@font-face{font-family:"MyFont";src:url("MyFont.woff2") format("woff2")} |
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 |
---|---|---|
@@ -1,6 +1,24 @@ | ||
@myColor: #ff0000; | ||
@myFontFamily: "MyFont"; | ||
@myFontUrl: url("./MyFont.woff2"); | ||
@myScale1: scale(1); | ||
@myScale2: scale(2); | ||
|
||
.myRule { | ||
float: left; | ||
color: @myColor; | ||
} | ||
|
||
@keyframes myKeyframes { | ||
0%, 80%, 100% { | ||
transform: @myScale1; | ||
} | ||
40% { | ||
transform: @myScale2; | ||
} | ||
} | ||
|
||
@font-face { | ||
font-family: @myFontFamily; | ||
src: @myFontUrl format("woff2"); | ||
} |