3 ms·
I've been doing this as well in some projects. I use Capsize, which I believe is the result of his team's work extracted into its own tiny library. Interestingl
by tshaddox 5y ago
I've been doing this as well in some projects. I use Capsize, which I believe is the result of his team's work extracted into its own tiny library. Interestingly, it no longer uses a transform, and now applies negative margins in :before and :after pseudo-elements, as such:
.capsizedText {
font-size: 19.25px;
line-height: 24px;
}
.capsizedText::before {
content: "";
margin-bottom: -0.2597em;
display: table;
}
.capsizedText::after {
content: "";
margin-top: -0.2597em;
display: table;
}
https://seek-oss.github.io/capsize/ https://seek-oss.github.io/capsize/