8000 [css-text] spaces before break in 'pre-wrap' text should allow combination of hanging and collapsing · Issue #277 · w3c/csswg-drafts · GitHub
[go: up one dir, main page]

Skip to content

[css-text] spaces before break in 'pre-wrap' text should allow combination of hanging and collapsing #277

@dbaron

Description

@dbaron

4.1.3. Phase II: Trimming and Positioning in css-text-3 says:

If spaces or tabs at the end of a line are non-collapsible but have white-space set to pre-wrap the UA must either hang the white space or visually collapse their character advance widths such that they don’t take up space in the line.

Based on the discussion in Mozilla Bug 1008019 - When a space overflows the width of a div, the previous word wraps as if it's attached to the div, with white-space: pre-wrap;, particularly starting at comment 34, it is my understanding that:

  • Chromium uses a combination of the two behaviors
  • in that bug, we're likely to change Gecko to do the same

It seems like the spec should allow the combination of the behaviors (i.e., collapsing only the part that would extend past the end of the line).

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

      0