Jarrett Widman
Jarrett Widman
hmmm, I wonder if this is a bug in juice or in a dependency, or if it is really a bug at all. Once you put it into XML mode,...
ok, fair enough. I'm still not sure offhand where this transform is happening, but I expect it is in a dependency somewhere and probably requires a PR to that dep...
Related https://github.com/Automattic/juice/issues/251 and worth calling out here again the version running on the github page is much older than the version on npm
The reason is that juice is conceived as a way to inline CSS into `style` tags, so it doesn't currently take any information from `style` tags and apply them elsewhere....
This is happening in one of the deps. Semantically, those two are the same so I'd accept a PR that might fix it, but it isn't something I'll be spending...
I thought about this a bit, and yes, I agree that sometimes having the same style multiple times is good, but in the overall use of stylesheets, this is something...
@pkhodakovsky can you post some example code showing this or explain a little more? I'm not following.
Rather than an option, here is a module that can do this for you https://www.npmjs.com/package/declassify
There isn't a way I know of to inline a hover state that is only active on hover. Do you know of one?
That seems like a very reasonable transform to add and likely default that option to OFF to avoid breaking a bunch of people's styles on the update. If anyone wants...