web-platform-tests / interop

web-platform-tests Interop project
https://wpt.fyi/interop
318 stars 27 forks source link

`::marker` pseudo-element #729

Open nileshprajapati opened 2 months ago

nileshprajapati commented 2 months ago

Description

The ::marker CSS pseudo-element selects the marker box of a list item, which typically contains a bullet or number. It works on any element or pseudo-element set to display: list-item, such as the <li> and <summary> elements.

Specification https://www.w3.org/TR/css-pseudo-4/#selectordef-marker

Specification

https://www.w3.org/TR/css-pseudo-4/#selectordef-marker

Additional Signals

No response

chriskirknielsen commented 1 month ago

I was about to submit a similar issue — I had grievances with this pseudo-element's styling a few months ago already and made this small demo: https://codepen.io/chriskirknielsen/pen/oNRzdzG

Chrome

As expected.

marker in Chrome, as expected

Firefox

letter-spacing is ignored

marker in Firefox, uses initial letter-spacing

Safari

content is ignored

marker in Safari, uses initial bullet list counter
gsnedders commented 1 month ago

https://wpt.fyi/results/css?label=master&label=experimental&aligned&q=marker%20%28css-lists%20or%20css-pseudo%29 maybe? (I also can't see any tests for ::marker on the summary element in WPT.)