Skip to content

[css-text-3] pre-wrap + break-word #2329

@Nadya678

Description

@Nadya678

Which behaviour of white-space:pre-wrap + word-wrap:break-word is correct?

  1. end spaces are preserved and break the line (EDGE/IE11) and long series internal spaces (between words) also break the line
  2. end spaces have any exception - doesn't break the and long series of spaces between words doesn't break the line? (Cr, Moz)

You can test it on <textarea/> or on content-editable <div/> by entering:
test_________________________________________________________test_________________________________________________, the _ means a space.

In my opinion the IE11/EDGE behaviour is correct.

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