by tyre · 7y ago · 0 comments
> text-decoration-thickness: sets the thickness of lines added via text-decoration.
> text-underline-offset: sets the distance between a text decoration and the text it is set on. Bear in mind that this only works on underlines.
> text-decoration-skip-ink: sets whether underlines and overlines are drawn if they cross descenders and ascenders. The default value, auto, causes them to only be drawn where they do not cross over a glyph. To allow underlines to cross glyphs, set the value to none.
I'm so excited for these. Implementing sane underlines for headers has been a pain in the ass for far too long. Writers rejoice!
11% coverage, and almost all of that is iOS Safari.
> We have plans to start implementation work on this before the end of the year.
https://bugs.chromium.org/p/chromium/issues/detail?id=785230...
If the underline indicating a link breaks, it looks like there are two adjacent links. To check if this is the case, I have to mouseover both the link before and after the break, and compare the URLs with my eyes.
I find this a much greater annoyance then I do the overlapping underlining.
data:text/html,<u style="font:99px times">Times</u> <u style="font:99px Arial">Arial
the Times and Arial elements get different underlines.(Safari and Chrome don't do this, they ignore the font's properties and use an arbitrary underline of their own -- which differs between the two, Chrome's being somewhat thicker.)
* "Always" may not be strictly true, but it's certainly been a long time.