-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add test for @page/@import/@charset/@namespace/@font-face * Add support for declarations inside at-rules * Quick formatting adjustment
- Loading branch information
1 parent
c470d00
commit b286fdc
Showing
13 changed files
with
130 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@charset "utf-8"; |
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,3 @@ | ||
<style> | ||
@charset "utf-8"; | ||
</style> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 @@ | ||
<style> | ||
@font-face { | ||
font-family: MyHelvetica; | ||
src: local('Helvetica Neue Bold'), local('HelveticaNeue-Bold'), url(MgOpenModernaBold.ttf); | ||
font-weight: bold; | ||
} | ||
</style> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,8 @@ | ||
<style> | ||
@import 'custom.css'; | ||
@import "common.css" screen; | ||
@import url(chrome://communicator/skin/); | ||
@import url(fineprint.css) print; | ||
@import url(landscape.css) screen and (orientation:landscape); | ||
@import url(red.css) (min-width:400px); | ||
</style> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,19 @@ | ||
<style> | ||
@namespace url(http://www.w3.org/1999/xhtml); | ||
@namespace svg url(http://www.w3.org/2000/svg); | ||
/* This matches all XHTML <a> elements, as XHTML is the default unprefixed namespace */ | ||
:global(a) { | ||
color: blue; | ||
} | ||
/* This matches all SVG <a> elements */ | ||
:global(svg|a) { | ||
color: green; | ||
} | ||
/* This matches both XHTML and SVG <a> elements */ | ||
:global(*|a) { | ||
color: red; | ||
} | ||
</style> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,32 @@ | ||
<style> | ||
@page vertical { | ||
size: A4 portrait; | ||
@top-center { | ||
content: "Vertical"; | ||
} | ||
} | ||
@page :right { | ||
@top-center { | ||
content: "Preliminary edition"; | ||
} | ||
@bottom-center { | ||
content: counter(page); | ||
} | ||
} | ||
@page :first { | ||
color: green; | ||
font-size: 20pt; | ||
@top-left { | ||
content: "foo"; | ||
color: blue; | ||
} | ||
@top-right { | ||
content: "bar"; | ||
} | ||
} | ||
</style> |
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 @@ | ||
@page{margin:1cm;size:A4;bleed:7pt} |
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,7 @@ | ||
<style> | ||
@page{ | ||
margin: 1cm; | ||
size: A4; | ||
bleed: 7pt; | ||
} | ||
</style> |