-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add test for indented <style> tag
- Loading branch information
Showing
5 changed files
with
255 additions
and
3 deletions.
There are no files selected for viewing
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
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,85 @@ | ||
--- | ||
source: dprint_plugin/tests/integration.rs | ||
--- | ||
<body> | ||
<style> | ||
/* journal entry styling. (maybe there's a better way than global styling?) */ | ||
article { | ||
display: grid; | ||
grid-template-columns: auto min(70ch, 100%) auto; | ||
gap: 0; | ||
margin: 1em; | ||
} | ||
|
||
article > * { | ||
grid-column: 2; | ||
} | ||
|
||
/* todo: is there a better width to use? */ | ||
@media (min-width: 65em) { | ||
/* todo: should images be fullbleed too? (they're in p tags meaning they need :has) | ||
(should code even be fullbleed to begin with?) */ | ||
|
||
/* article > pre { | ||
grid-column: 1 / 4; | ||
width: 70%; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} */ | ||
} | ||
|
||
/* margins! */ | ||
article * { | ||
margin: 0; | ||
} | ||
|
||
article * + * { | ||
margin-top: 1em; | ||
} | ||
|
||
article h2 + h3, | ||
article h3 + h4, | ||
article h4 + h5, | ||
article h5 + h6 { | ||
margin-top: 0; | ||
} | ||
|
||
article li + li { | ||
margin-top: 0; | ||
} | ||
|
||
article p + ol, | ||
article p + ul /*, | ||
article p + pre */ { | ||
margin-top: 0.5em; | ||
} | ||
|
||
/* nested lists */ | ||
article li > ul, | ||
article li > ol { | ||
margin-top: 0; | ||
} | ||
|
||
/* protect against dreaded horizontal scrollbar */ | ||
article img { | ||
max-width: 100%; | ||
} | ||
|
||
/* general type features */ | ||
article h2 a, | ||
article h3 a, | ||
article h4 a, | ||
article h5 a, | ||
article h6 a { | ||
display: none; | ||
} | ||
|
||
article h2:hover a, | ||
article h3:hover a, | ||
article h4:hover a, | ||
article h5:hover a, | ||
article h6:hover a { | ||
display: inline; | ||
} | ||
</style> | ||
</body> |
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,85 @@ | ||
--- | ||
source: dprint_plugin/tests/integration.rs | ||
--- | ||
<body> | ||
<style> | ||
/* journal entry styling. (maybe there's a better way than global styling?) */ | ||
article { | ||
display: grid; | ||
grid-template-columns: auto min(70ch, 100%) auto; | ||
gap: 0; | ||
margin: 1em; | ||
} | ||
|
||
article > * { | ||
grid-column: 2; | ||
} | ||
|
||
/* todo: is there a better width to use? */ | ||
@media (min-width: 65em) { | ||
/* todo: should images be fullbleed too? (they're in p tags meaning they need :has) | ||
(should code even be fullbleed to begin with?) */ | ||
|
||
/* article > pre { | ||
grid-column: 1 / 4; | ||
width: 70%; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} */ | ||
} | ||
|
||
/* margins! */ | ||
article * { | ||
margin: 0; | ||
} | ||
|
||
article * + * { | ||
margin-top: 1em; | ||
} | ||
|
||
article h2 + h3, | ||
article h3 + h4, | ||
article h4 + h5, | ||
article h5 + h6 { | ||
margin-top: 0; | ||
} | ||
|
||
article li + li { | ||
margin-top: 0; | ||
} | ||
|
||
article p + ol, | ||
article p + ul /*, | ||
article p + pre */ { | ||
margin-top: 0.5em; | ||
} | ||
|
||
/* nested lists */ | ||
article li > ul, | ||
article li > ol { | ||
margin-top: 0; | ||
} | ||
|
||
/* protect against dreaded horizontal scrollbar */ | ||
article img { | ||
max-width: 100%; | ||
} | ||
|
||
/* general type features */ | ||
article h2 a, | ||
article h3 a, | ||
article h4 a, | ||
article h5 a, | ||
article h6 a { | ||
display: none; | ||
} | ||
|
||
article h2:hover a, | ||
article h3:hover a, | ||
article h4:hover a, | ||
article h5:hover a, | ||
article h6:hover a { | ||
display: inline; | ||
} | ||
</style> | ||
</body> |
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,82 @@ | ||
<body> | ||
<style> | ||
/* journal entry styling. (maybe there's a better way than global styling?) */ | ||
article { | ||
display: grid; | ||
grid-template-columns: auto min(70ch, 100%) auto; | ||
gap: 0; | ||
margin: 1em; | ||
} | ||
|
||
article > * { | ||
grid-column: 2; | ||
} | ||
|
||
/* todo: is there a better width to use? */ | ||
@media (min-width: 65em) { | ||
/* todo: should images be fullbleed too? (they're in p tags meaning they need :has) | ||
(should code even be fullbleed to begin with?) */ | ||
|
||
/* article > pre { | ||
grid-column: 1 / 4; | ||
width: 70%; | ||
margin-left: auto; | ||
margin-right: auto; | ||
} */ | ||
} | ||
|
||
/* margins! */ | ||
article * { | ||
margin: 0; | ||
} | ||
|
||
article * + * { | ||
margin-top: 1em; | ||
} | ||
|
||
article h2 + h3, | ||
article h3 + h4, | ||
article h4 + h5, | ||
article h5 + h6 { | ||
margin-top: 0; | ||
} | ||
|
||
article li + li { | ||
margin-top: 0; | ||
} | ||
|
||
article p + ol, | ||
article p + ul/*, | ||
article p + pre */ { | ||
margin-top: 0.5em; | ||
} | ||
|
||
/* nested lists */ | ||
article li > ul, | ||
article li > ol { | ||
margin-top: 0; | ||
} | ||
|
||
/* protect against dreaded horizontal scrollbar */ | ||
article img { | ||
max-width: 100%; | ||
} | ||
|
||
/* general type features */ | ||
article h2 a, | ||
article h3 a, | ||
article h4 a, | ||
article h5 a, | ||
article h6 a { | ||
display: none; | ||
} | ||
|
||
article h2:hover a, | ||
article h3:hover a, | ||
article h4:hover a, | ||
article h5:hover a, | ||
article h6:hover a { | ||
display: inline; | ||
} | ||
</style> | ||
</body> |