add explanatory comment

(#1014)
main
Mike Fix 5 years ago
parent 58891ffcb1
commit 9da7fb2f4e
No known key found for this signature in database
GPG Key ID: 1D85E862314CA79F

@ -39,6 +39,10 @@ function getUnderline(underline) {
case 1: case 1:
return 'underline' return 'underline'
case 2: case 2:
/**
* Chrome will only round to the nearest wave, causing visual inconsistencies
* https://stackoverflow.com/questions/57559588/how-to-make-the-wavy-underline-extend-cover-all-the-characters-in-chrome
*/
return `${COLORS.RED} wavy underline; text-decoration-skip-ink: none` return `${COLORS.RED} wavy underline; text-decoration-skip-ink: none`
} }
return 'initial' return 'initial'

Loading…
Cancel
Save