W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2019

Re: [csswg-drafts] [css-text-decor] Limits on text-underline-offset to preserve semantic meaning (#4059)

From: Brad Kemper via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 Jul 2019 17:47:17 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-510161544-1562780836-sysbot+gh@w3.org>
I also prefer no clamp at all (other than extremely large numbers that create memory problems, etc).

People can be very creative, and I don’t want to stifle the creativity with artificial limits. Some things mentioned after the call:

- @jensimmons: Reason to have an extreme offset underline: Fancy heading with mildly obnoxious hover effect that causes an underline to appear, but it doesn't just appear it slides into place from offscreen.  I'm not saying it's good design, I'm just saying that once you allow animated underline offset distances, some designer is going to want to take it to the extreme.
- people *are* going to animate this line
- @tantek: web designers will use overlines and underlines as alternative borders or alternative to outline-top and outline-bottom
- me: Could be used as an offset solid background too
- @tantek: graphical effects you can position without affecting layout

I agree with all of this. Also, text-decoration is decoration. It is not semantic. I do think overline and strikethrough should be offsettable too. So an author can adjust the position of a strike-through without having to change it to an underline. And so an author can use underline for colored lines/rectangles behind the text, and strike-throughs in front of the text. 


-- 
GitHub Notification of comment by bradkemper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4059#issuecomment-510161544 using your GitHub account
Received on Wednesday, 10 July 2019 17:47:20 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:50 UTC