ftlabs / ftellipsis

Multi-line ellipsis made possible
MIT License
486 stars 36 forks source link

Child elements must be a block type and should not have any additional padding/margin styles. #13

Open tgorgdotcom opened 5 years ago

tgorgdotcom commented 5 years ago

Just a note, not sure if this is a bug or if the readme needs to be updated. I found that the child elements in the requirements don't work if they are span (so I'm guessing non-block type), or if they have any margin (so maybe any styles that mess with the line-height calculations). Figured I'd post it here in case someone else was trying to figure out why something wasn't working.

For reference, the browser I was testing this on was Chrome 74