Skip to content

<textarea wrap=hard> does not match implementations #6662

Open
@annevk

Description

@annevk

The specification suggests that the cols attribute is used for width when doing forced wrapping, but implementations (Chrome/Safari) use the rendered width (and wrapping) of text.

This came out of #6647. E.g., add style=display:none to the textarea in https://software.hixie.ch/utilities/js/live-dom-viewer/saved/9245 or style=width:1000px.

If that issue is solved by changing the wrapping to LF, as suggested, this issue can be used for remaining cleanup:

  • Moving wrap=hard semantics into construct the entry list as the textarea element itself doesn't care about the result
  • Redefining wrap=hard to exclusively use the rendered width (and not perform wrapping when nothing is rendered)
  • Deduplicating API value into value
  • Figure out what roles cols and rows play other than being presentational hints. (And maybe also clarify their relationship with the rendering section.)

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