css-inline
css-inline copied to clipboard
High-performance library for inlining CSS into HTML 'style' attributes
In this case, it is possible to avoid allocating `String` and more compact `Tendril` instances will be used instead
As `juice` does It is only relevant for CLI, with the library itself, the end-user can load css from a file manually.
Inlining itself could be also optimized if we could just join all loaded CSS into a single string. Worth researching, however, I am not sure how common it is to...
### Problem Since everything is inlined, classes are useless and likely won't bring any benefits but occupy some space in the output. Hence I believe we can safely remove them....
Now we have some extra spaces that are not needed. `;` in the end, is also optional
For example: ```html h1 { font-size: 14px; } @media only screen and (max-width: 620px) { h1 { font-size: 16px; } } Hello ``` Should be converted to: ```html @media only...
Resolves #246 - [ ] Use `Atomic` for tendrils during doc construction when necessary
Generally, customizable resolvers will be nice (eg to provide a way to use the fetch API in WASM instead of our default impl). When implemented, we can ship a caching...
Updates the requirements on [cssparser](https://github.com/servo/rust-cssparser) to permit the latest version. Commits See full diff in compare view You can trigger a rebase of this PR by commenting `@dependabot rebase`. [//]:...
Updates the requirements on [pico-args](https://github.com/RazrFalcon/pico-args) to permit the latest version. Changelog Sourced from pico-args's changelog. [0.5.0] - 2022-06-04 Changed The eq-separator build feature is no longer enabled by default. Small...