Re: [csswg-drafts] [css-lists] How to control the gap between the marker and the text? (#4571)

> > The point of this issue is to discuss if we need something better, and what it would be.
> 
> `marker-gap` would be nice :)

I also thought of something like `list-style-gap` when I was asking myself the same question as this issue and looking for possible solutions.  
Due to inconsistencies across browsers, and e.g., no real way to set the gap of built-in list markers like `disc` to `0`, authors end up working around `::marker` instead of using it (for example, by removing its content and using a pseudo-element like `::before`).  
IMHO, a "gap" property like this would help standardize control over marker spacing.

This [article about the "Gap After the List Marker", including a live demo](https://css-tricks.com/everything-you-need-to-know-about-the-gap-after-the-list-marker/), summarizes some important aspects and related problems for authors quite well, in my eyes.

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


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

Received on Thursday, 13 March 2025 20:48:39 UTC