Skip to content

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

Closed

Description

@litherum

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.

Activity

  1. fantasai commented on Nov 1, 2018

    @fantasai
    Collaborator

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

  2. css-meeting-bot commented on Dec 6, 2018

    @css-meeting-bot
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions