compat icon indicating copy to clipboard operation
compat copied to clipboard

-webkit-text-fill-color and list marker

Open upsuper opened this issue 8 years ago • 5 comments

See the following code:

<!DOCTYPE html>
<style>
:root { color: red; -webkit-text-fill-color: green; }
li::before, li::after { content: "##"; }
</style>
<ol><li>hello</li></ol>
<ul><li>hello</li></ul>

Should the list markers use color or -webkit-text-fill-color?

Currently all browsers use color for the list markers, but it seems inconsistent to me, because in theory, like ::before and ::after, list markers are just some pseudo elements contain some generated content. I think it should use the same color as other text.

upsuper avatar Dec 30 '16 12:12 upsuper

IMHO, I prefer that the list markers should use the same color as other text.

IIRC, I implemented -webkit-text-fill-color just for the compatibility reason, so I was targeting to be agree with WebKit and Blink.

@miketaylr could you (or someone) help gather feedback from WebKit and Blink?

chenpighead avatar Jan 05 '17 03:01 chenpighead

@tabatkins, @grorg any thoughts here?

miketaylr avatar Jan 05 '17 15:01 miketaylr

Yeah, if we assume text-fill stuff exists, then bullets probably should use them for their colors.

tabatkins avatar Jan 06 '17 00:01 tabatkins

Agreed.

grorg avatar Jan 06 '17 00:01 grorg

Filed bug 1329052 for Gecko.

upsuper avatar Jan 06 '17 01:01 upsuper