Automattic / Automattic/juice

It seems the :first-letter don't work

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

Description

It seem the :first-letter don't work,for example:
```javascript
var html="

1abc

"
var css="h3:first-letter{color:red}"
output=juice.inlineContent(html, css,{inlinePseudoElements:true});
```
but don't find the the `output` include the `first-letter` style.
have any other additional things I want to do?please give me some advise,thanks a lot.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the provided html, css, and juice.inlineContent example with inlinePseudoElements enabled. Trace how inlineContent handles pseudo-elements and compare the output with the expected first-letter styling; done means the generated output includes that style or clearly documents the limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.