[css-text-decor-4] Are text decorations visual overflow or layout overflow? · Issue #3272 · w3c/csswg-drafts · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-text-decor-4] Are text decorations visual overflow or layout overflow? #3272

Closed
litherum opened this issue Nov 1, 2018 · 2 comments
Closed

Comments

@litherum
Copy link
Contributor

litherum commented Nov 1, 2018

Neither the level 3 spec nor the level 4 spec mentions the word "overflow."

Now that we can place underlines in arbitrary places, we need to decide if they cause scrollbars or not.

It's easier to implement if they don't. But underlines do provide semantic meaning to text.

@fantasai
Copy link
Collaborator

fantasai commented Nov 1, 2018

They should be ink overflow, just like glyph bounds that are beyond the ascent/descent.

@fantasai fantasai added the css-text-decor-3 Current Work label Nov 1, 2018
@css-meeting-bot
Copy link
Member

The CSS Working Group just discussed Are text decorations visual overflow or layout overflow?, and agreed to the following:

  • RESOLVED: text decoration is considered ink overflow and not layout
The full IRC log of that discussion <dael> Topic: Are text decorations visual overflow or layout overflow?
<dael> github: https://github.com//issues/3272
<dael> Rossen: Raised by myles, fantasai added
<dael> fantasai: myles and I agree it should be ink overflow. Wnat to confirm with WG. I think add to L3 and L4
<dael> Rossen: Implication is if you're editing and at the end of a scrollable paragraph and what I type in becomes underlined because syntax I won't be able to see that by scrollbar.
<dael> fantasai: If you choose and offset that places underline outside of linebox.
<dael> fantasai: Underline typicially in linebox and that's within scrollable. You'd have to place the underline below the line height before it disappears
<dael> Rossen: Trying to understand if we're okay with that
<dbaron_> It might also be fun to define what element they're overflow from.
<dael> fantasai: I think it's fine. If you're placing the underline that low you're asking for trouble
<dbaron_> But happy with ink overflow, I think
<dael> Rossen: [Reads dbaron_ ]
<dael> fantasai: Given painted at same layer as text, should overflow from element painting the text
<dael> Rossen: Certainly content layer of the scroller...let's see
<fantasai> https://www.w3.org/TR/CSS2/zindex.html#each-box
<dael> Rossen: Should be container of element with text.
<dael> Rossen: Objections to resolving on definition that text decoration is considered ink overflow and not layout
<dael> RESOLVED: text decoration is considered ink overflow and not layout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants