Automattic / Automattic/juice

replace any existing style with new one

Open
#355 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.3k
Forks
233
Avg merge
1d 10h
Merged PRs (30d)
8

Description

is there a way to replace any existing inline style without using the `!importatnt` keyword?
this is what I am trying to achieve:

```
const html = `

`
const css = `.test{ width: 100%; }`
const styledHtml = juice(html+css, {overrideExistingStyle: true}) // expected:

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.