flyingsaucerproject / flyingsaucer

XML/XHTML and CSS 2.1 renderer in pure Java
Other
2.02k stars 564 forks source link

Bold highlighting of a list item marker not being applied #321

Open urbancamo opened 6 months ago

urbancamo commented 6 months ago

Hi, thanks for the great library, it's just been such a pleasure to work with!

I have a minor bug, relating to bold highlighting of markers.

Given the styling:

ol li::marker {
    font-weight: bold;
}

I see bold being applied to the HTML generated document, but not to the PDF output.

HTML:

image

PDF:

image

Many thanks, Mark.

pbrant commented 6 months ago

The marker pseudo-element is unsupported.

I haven't checked, but I'm pretty sure ::marker is CSS3 and Flying Saucer development pretty much stopped with CSS 2.1.

My guess is that it wouldn't be very difficult to support at least font related properties though.