Created
May 5, 2022 12:56
-
-
Save RodrigoTomeES/542a201afb12b31d81301f2ff47ed724 to your computer and use it in GitHub Desktop.
Example of use text-underline-offset negative
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Title: text-underline-offset with negative value | |
* Preview: https://codepen.io/RodrigoTomeES/pen/RwQWwML | |
* More info: | |
* - https://github.com/w3c/csswg-drafts/issues/4059 | |
* - https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-skip-ink | |
* - https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration-skip | |
*/ | |
a { | |
text-decoration-line: underline; | |
text-decoration-style: solid; | |
text-decoration-thickness: 1.2rem; | |
text-underline-offset: -.2em; | |
text-decoration-color: #8cb4ff; | |
text-decoration-skip-ink: none; /* works in Firefox & Chrome, not in Safari */ | |
text-decoration-skip: none; /* works in Safari, not in Firefox & Chrome */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment