css_inline 0.22.1 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/ext/css_inline/Cargo.lock +229 -293
- data/ext/css_inline/Cargo.toml +6 -2
- data/{ext/css_inline/src → src}/lib.rs +6 -0
- metadata +5 -7
- data/Cargo.lock +0 -1946
- data/Cargo.toml +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f7bbfcc37f960f334a6da5f9c07c57079d77fbe3430e6b4aa2a59ae960e20a12
|
|
4
|
+
data.tar.gz: e3c6be1eaef22e80dbd1569f0b4a9b5a3e6d0b7da0126a6bedf081905fff68ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8be920520eb7e923dc3cc02382b2a555685ec3ff501370fa99dfc3690c0d25322d347097907035f1693d191fb80a83e9d68fe3aa274a3d2ddd734df916ffd3e5
|
|
7
|
+
data.tar.gz: bf0ed1ba45e5ced9c0c138113ee3c4dcacd46c1df85ab0bfc4db4ac7e13229fdf94f998e541101884148e5df5722f37104c2a858ba96124632368d60347086ff
|
data/README.md
CHANGED
|
@@ -161,6 +161,7 @@ The module functions accept the same keyword arguments, for example `CSSInline.i
|
|
|
161
161
|
- `remove_inlined_selectors`. Remove inlined selectors from `<style>` blocks. Default: `false`
|
|
162
162
|
- `apply_width_attributes`. Add `width` HTML attributes from CSS `width` properties on `table`, `td`, `th` and `img`. Default: `false`
|
|
163
163
|
- `apply_height_attributes`. Add `height` HTML attributes from CSS `height` properties on `table`, `td`, `th` and `img`. Default: `false`
|
|
164
|
+
- `resolve_css_variables`. Replace `var()` references with the values of the custom properties they refer to and drop the `--*` declarations. Default: `false`
|
|
164
165
|
|
|
165
166
|
To skip CSS inlining for an HTML tag, add the `data-css-inline="ignore"` attribute to it:
|
|
166
167
|
|
|
@@ -282,7 +283,7 @@ end
|
|
|
282
283
|
`premailer` fails on "Realistic email 2" with `ArgumentError: Cannot parse 0 calc((100% - 500px) / 2)`.
|
|
283
284
|
|
|
284
285
|
Inputs come from [`benchmarks/benchmarks.json`](https://github.com/Stranger6667/css-inline/blob/master/benchmarks/benchmarks.json): Basic usage is `simple`, Realistic email 1 and 2 are `big_email_1` and `big_email_2`, GitHub Page is `big_page`.
|
|
285
|
-
The benchmark code is in [`test/bench.rb`](https://github.com/Stranger6667/css-inline/blob/master/
|
|
286
|
+
The benchmark code is in [`test/bench.rb`](https://github.com/Stranger6667/css-inline/blob/master/crates/css-inline-ruby/test/bench.rb) and uses [`benchmark-ips`](https://github.com/evanphx/benchmark-ips) (5 s per case; `roadie` completes one run on the GitHub page in that time).
|
|
286
287
|
We measured these results with stable `rustc 1.99` on Ruby `3.4.8`, Ryzen 9 9950X.
|
|
287
288
|
|
|
288
289
|
## Further reading
|