Re: [csswg-drafts] [css-pseudo] easier way to change individual list item markers? (#11862)

@Loirooriol -- I looked at #8752 and I can't see it having anything that duplicates that issue.

@jfkthame -- the first part (`li.<color class>::marker { color: <color name>; }`) appears to work well, but I have not been able to get the second suggestion (`var(--custom-name)`) to work as indicated. Did you test that code? I can't use `color: red` in the `style=` attribute for `<li>` because it would change the _text_ color too. If I can create an _alias_ for `color` such as `marker-color`, applicable only to the marker for that list item, then I could style it.

It's not catastrophic if I have to define classes in the `<style>` section, but I would rather use `style=` if I can.

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


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

Received on Saturday, 8 March 2025 00:26:04 UTC