editable-text: Correctly match ::after to text position

Fixes a rare mismatch that adds an extra line when that one pixel counts.
This commit is contained in:
Abe Jellinek 2024-01-09 14:04:35 -05:00 committed by Dan Stillman
parent 1f3c65a504
commit bfec26f3cf

View file

@ -50,7 +50,8 @@ editable-text {
&:not([nowrap])::after {
content: attr(value) ' ';
visibility: hidden;
margin: 1px;
margin-inline-start: 1px;
margin-top: 1px;
padding: var(--editable-text-padding-block) var(--editable-text-padding-inline);
font: inherit;
line-height: inherit;