Skip to content

Please document how to use capsize with lists #68

Answered by dabrahams
dabrahams asked this question in Q&A
Discussion options

You must be logged in to vote

Capsize should only be applied to the leaf text nodes

That's what I figured, but it would be good to make that very clear in the documentation. There's not really a good way to select them with CSS selectors, is there?

In my actual application I need to control list bullet formatting using a ::before pseudo-element, which makes applying the standard basekick to the leaf <li> elements impractical, which is why it ended up on <ul>. But there are places where I had to make a capsize adjustment for other CSS-injected text, and there I used a solid-trasparent border to do it. I suppose I could do the same for <li> elements…

Looking at your updated playroom, it seems you added a <p> around th…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@michaeltaranto
Comment options

Answer selected by michaeltaranto
Comment options

You must be logged in to vote
2 replies
@michaeltaranto
Comment options

@dabrahams
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #67 on December 16, 2021 21:22.