mirror of
https://github.com/KevinMidboe/inline-html.git
synced 2025-10-29 17:40:29 +00:00
Add support for inlining CSS stylesheets. Add tests. Update docs.
This commit is contained in:
1
test/fixtures/basic.css
vendored
1
test/fixtures/basic.css
vendored
@@ -1 +1,2 @@
|
||||
/* basic.css */
|
||||
div { color: blue; }
|
||||
|
||||
3
test/fixtures/basic.less
vendored
3
test/fixtures/basic.less
vendored
@@ -1 +1,2 @@
|
||||
div { background-image: url('file.txt'); }
|
||||
/* basic.less */
|
||||
div { color: blue; }
|
||||
|
||||
1
test/fixtures/import.css
vendored
Normal file
1
test/fixtures/import.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@import 'basic.css';
|
||||
1
test/fixtures/invalid-import.css
vendored
Normal file
1
test/fixtures/invalid-import.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@import 'missing.css';
|
||||
2
test/fixtures/invalid-import.less
vendored
2
test/fixtures/invalid-import.less
vendored
@@ -1 +1 @@
|
||||
@import (less) 'missing.css';
|
||||
@import 'missing.less';
|
||||
|
||||
1
test/fixtures/invalid-syntax.css
vendored
Normal file
1
test/fixtures/invalid-syntax.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div {
|
||||
1
test/fixtures/invalid-url.css
vendored
Normal file
1
test/fixtures/invalid-url.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div { background-image: url('missing.png'); }
|
||||
4
test/fixtures/invalid-url.less
vendored
4
test/fixtures/invalid-url.less
vendored
@@ -1,3 +1 @@
|
||||
div {
|
||||
background-image: url('missing.png');
|
||||
}
|
||||
div { background-image: url('missing.png'); }
|
||||
|
||||
1
test/fixtures/nested-import.css
vendored
Normal file
1
test/fixtures/nested-import.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
@import 'import.css';
|
||||
1
test/fixtures/url.css
vendored
Normal file
1
test/fixtures/url.css
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div { background-image: url('file.txt'); }
|
||||
1
test/fixtures/url.less
vendored
Normal file
1
test/fixtures/url.less
vendored
Normal file
@@ -0,0 +1 @@
|
||||
div { background-image: url('file.txt'); }
|
||||
Reference in New Issue
Block a user