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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7bdb9e863d0c4b1d333dbab94beb014c8884308dcc0d78731ed5706f8468a300
4
- data.tar.gz: ce1097ee0ac4313ad964607c17fb31ead1abf79d082a8afc1e95a65fe25a100d
3
+ metadata.gz: f7bbfcc37f960f334a6da5f9c07c57079d77fbe3430e6b4aa2a59ae960e20a12
4
+ data.tar.gz: e3c6be1eaef22e80dbd1569f0b4a9b5a3e6d0b7da0126a6bedf081905fff68ce
5
5
  SHA512:
6
- metadata.gz: 172a49c2daa9b63e608e2919124e00edc48d3419cd9a96eece513c9990dc187f638764c08520bddb226e6a54068a4ef4792209be4fb32d245a89505936ea4a41
7
- data.tar.gz: 70058af033f406d517bb14c064f55d79886824ab417fc7dc6cd93a75edeb8f6c5faeeb55af1ecdca8f7efac86098d04358c4d6fe90ae0fba0ef66c98fbdcca9b
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/bindings/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
+ 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