douceur icon indicating copy to clipboard operation
douceur copied to clipboard

A simple CSS parser and inliner in Go

Results 11 douceur issues
Sort by recently updated
recently updated
newest added

The following code loops forever in the latest version: ``` go package css import ( "testing" "github.com/aymerick/douceur/parser" ) func TestInfiniteLoop(t *testing.T) { parser.Parse(` @media ( __desktop ) { background-color: red;...

The setting `KeepStyle` allows the existing style in the HTML document to be preserved after running the inliner. The setting `AppendToBody` appends back all the style rules to the end...

The inliner library replaces ` ` is replaced with a space character. In my opinion, inliner should leave ` ` as it is. Here is a short test. ``` go html :=...

With this CSS ``` css @-webkit-keyframes segment-spin { from { -webkit-transform: rotate(0deg); transform: rotate(0deg) } to { -webkit-transform: rotate(360deg); transform: rotate(360deg) } } ``` I get: ``` Unexpected } character:...

This is more question/feature-request. I want to preserve the existing CSS selectors after running through the inliner, eg; Before ```html .my-class { color: red; } Test ``` After ```html .my-class...

After I installed it this was the first thing I needed so I figured I'd help out by adding a usage banner. Thanks for your great work!

This extends the API for Inline to accept optional coma separated list of *css.Stylesheet. This enable to inline styles extracted from external sources.

I use this code for my mail service, but would like to know if there is any activity. I did a lot of refactoring and added Renovate to my fork....