Skip to content

Vary marker style of unordered lists (<li> in <ul>) by level of nesting #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gnprice opened this issue Jun 8, 2023 · 0 comments
Open
Labels
a-content Parsing and rendering Zulip HTML content, notably message contents

Comments

@gnprice
Copy link
Member

gnprice commented Jun 8, 2023

This is something that browsers do unless instructed with CSS otherwise, and that Zulip web/desktop and the zulip-mobile RN app (which uses a webview for the message list) therefore get automatically. It's subtle, but would be good to match.

For the web behavior, see:
https://html.spec.whatwg.org/multipage/rendering.html#lists
https://www.w3.org/TR/css-counter-styles-3/#simple-symbolic

Here's a screenshot of how that comes out:
image

Note there are three different styles for the outer three levels, and then the third style repeats for further levels.

The markup for that test message is:

* a
  * b
    * c
      * d
      * d2
    * c2
  * b2
* a2

Also note there is no such variation for ordered lists <ol>. Those are by default always marked with 1, 2, 3, etc., regardless of nesting level.

@gnprice gnprice added the a-content Parsing and rendering Zulip HTML content, notably message contents label Jun 8, 2023
@gnprice gnprice added this to the Launch milestone Jun 8, 2023
@gnprice gnprice modified the milestones: Launch, Post-launch Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-content Parsing and rendering Zulip HTML content, notably message contents
Projects
Status: No status
Development

No branches or pull requests

1 participant