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

"textarea wrapping transformation" should reflect implementations #9896

Open
bfgeek opened this issue Oct 30, 2023 · 3 comments
Open

"textarea wrapping transformation" should reflect implementations #9896

bfgeek opened this issue Oct 30, 2023 · 3 comments

Comments

@bfgeek
Copy link
Member

bfgeek commented Oct 30, 2023

What is the issue with the HTML Standard?

https://html.spec.whatwg.org/#textarea-wrapping-transformation

From: #6807 (comment)

The "textarea wrapping transformation" doesn't reflect implementation reality (implementations also disagree about how to implement this feature but that's a different conversation).

For this issue the phrase "so that each line has no more than character width characters"

Should be something like "so that each line has no more than the used width of the textarea of content" or something ("characters" a bad term here).

@annevk
Copy link
Member

annevk commented Oct 30, 2023

I don't necessarily agree we want to standardize on that. The whole idea is to be able to wrap at a certain amount of characters so you get monospace-compatible wrapping. Making it depend on the width and font in use just makes the whole thing unreliable. Granted, it already is, but then if we don't want to do what it was designed for I'd rather just remove it.

@zcorpan
Copy link
Member

zcorpan commented Nov 6, 2023

Is wrap=hard needed for web compat or would it be possible to remove it?

@hsivonen
Copy link
Member

hsivonen commented Nov 6, 2023

something ("characters" a bad term here).

Gecko uses East Asian Width and General Category as follows (rules higher up on this list win in case of conflicting rules):

U+0000 has width 0.
Other characters below U+0020 have width 1.
C1 controls have width 1.
General categories non-spacing mark and enclosing mark have width 0.
Characters whose East Asian Width is full-width or wide have width 2.
Other characters have width 1.

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

No branches or pull requests

4 participants