css-inline
Advanced tools
Comparing version 0.8.2 to 0.8.3
@@ -7,3 +7,3 @@ { | ||
"description": "A WASM package for inlining CSS into HTML documents", | ||
"version": "0.8.2", | ||
"version": "0.8.3", | ||
"license": "MIT", | ||
@@ -10,0 +10,0 @@ "repository": { |
@@ -46,1 +46,29 @@ # css-inline | ||
``` | ||
If you'd like to skip CSS inlining for an HTML tag, add `data-css-inline="ignore"` attribute to it: | ||
```html | ||
<head> | ||
<title>Test</title> | ||
<style>h1 { color:blue; }</style> | ||
</head> | ||
<body> | ||
<!-- The tag below won't receive additional styles --> | ||
<h1 data-css-inline="ignore">Big Text</h1> | ||
</body> | ||
</html> | ||
``` | ||
This attribute also allows you to skip `link` and `style` tags: | ||
```html | ||
<head> | ||
<title>Test</title> | ||
<!-- Styles below are ignored --> | ||
<style data-css-inline="ignore">h1 { color:blue; }</style> | ||
</head> | ||
<body> | ||
<h1>Big Text</h1> | ||
</body> | ||
</html> | ||
``` |
Sorry, the diff of this file is not supported yet
1176418
74