Skip to content
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

list-inside does not handle "hanging indent" (list-outside does) - simply view your doc page with narrow window #4549

Closed
jpwynn opened this issue Jun 2, 2021 · 1 comment

Comments

@jpwynn
Copy link

jpwynn commented Jun 2, 2021

What version of Tailwind CSS are you using?

2.0.4

What build tool (or framework if it abstracts the build tool) are you using?

play.tailwindcss.com

What version of Node.js are you using?

play.tailwindcss.com

What browser are you using?

Chrome90 and firefox 88

What operating system are you using?

mac catalina

Reproduction repository

https://play.tailwindcss.com/lDSLiFbftS

Describe your issue

Repo not needed, your online "play.tailwindcss.com" illustrates bug perfectly as does your own doc page (see below)

list-inside does NOT handle "hanging indent" at all; list-outside is OK.

Reproduce bug example #1 - TW playground:
https://play.tailwindcss.com/lDSLiFbftS

Reproduce bug example #2 - simply view your doc page

Your "samples" for list style position fail to include any samples "long enough to wrap" which is probably how this bug escaped detection so long.

But if you view your doc page https://tailwindcss.com/docs/list-style-position with the browser window narrow enough for the sample text to wrap, you can reproduce the bug there:

List_Style_Position_-_Tailwind_CSS

@jpwynn jpwynn changed the title list-inside does NOT handle "hanging indent" (list-outside does) - simply view your doc page with narrow window list-inside does not handle "hanging indent" (list-outside does) - simply view your doc page with narrow window Jun 2, 2021
@adamwathan
Copy link
Member

Hey! This isn't a bug actually, that's just how the CSS list-style-position: inside feature works.

Here's a demo using vanilla CSS with no Tailwind at all:

https://jsfiddle.net/uLyq7jmt/

Check out the MDN documentation on this property to learn more: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-position

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants