Re: [csswg-drafts] [css-counter-styles] counter-style square symbol (0x25FE) is bad (#6200)

> Is it like ::marker { font-family: -vendor-marker-font }? Isn't this bad when the marker is not a symbol?

Yes I agree, for the general case. We do this with magic when we have `list-style-type: disc|circle|square` only. I agree it's not the neatest of fits; ideally we'd have a mechanism like
```css
@font-face {
   font-family: -vendor-marker-font;
   unicode-range: U+2022, U+25A0;
}
::marker {
    font-family: -vendor-marker-font, inherit(font-family); /* note */
}
```
You can be sure I'll be checking Mats' UA stylesheet when it's out though to see if he's got any better ideas, but it feels like there will need to be some special casing for compat whatever we do.

> @faceless2 If an internal font is the only way, then it should maybe be defined in the spec.

It sort of is already - the [text](https://www.w3.org/TR/css-counter-styles-3/#simple-symbolic) says `list-style-type: disc` is "A filled circle, similar to • U+2022 BULLET". And even if you set `<ul style="font-family: ahem">`, that's still what you get - a circle, not a black square. The means by which that happens seems a bit of an implementation detail to me, and I think the spec is clear enough. But I'd be easily enough persuaded otherwise.

@tabatkins the two look different on macOS Safari, although TBF I need to squint a bit...

(*note - idea from https://github.com/w3c/csswg-drafts/issues/2864, not sure I've got it right but the intent should be clear.)

-- 
GitHub Notification of comment by faceless2
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6200#issuecomment-816939659 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 9 April 2021 20:09:10 UTC