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

[css-forms-1] Define pseudo element for textarea resizer #11850

Open
lukewarlow opened this issue Mar 6, 2025 · 4 comments
Open

[css-forms-1] Define pseudo element for textarea resizer #11850

lukewarlow opened this issue Mar 6, 2025 · 4 comments

Comments

@lukewarlow
Copy link
Member

Currently there's no pseudo-element for the resizer in the textarea elements, we should define one (and probably improve it).

@schenney-chromium
Copy link
Contributor

What aspects of the appearance would be stylable? There's the obvious color and maybe background-color, but then what?

Would just supporting an image do the trick?

@lukewarlow
Copy link
Member Author

lukewarlow commented Mar 6, 2025

Consistent rendering would be needed, it's not actually always shown in browsers right now. For example iOS Safari doesn't iirc.

Another thing is how it responds to dark mode. Right now there's issues across browsers with contrast.

The handle isn't big enough to meet wcag touch target requirements for example.

It may even be that the current resize UI should be rethought entirely (possibly the edges should be the drag handles rather than a standalone pseudo?)

@nt1m
Copy link
Member

nt1m commented Mar 8, 2025

I originally held off from adding this, mainly because of this:

It may even be that the current resize UI should be rethought entirely (possibly the edges should be the drag handles rather than a standalone pseudo?)

Perhaps we could add some intermediate ::corner-resizer or ::resizer(corner) pseudo-element though until that happens. ::resizer would probably cause name clashes if a different type of resizer is added.

@SebastianZ
Copy link
Contributor

SebastianZ commented Mar 8, 2025

FWIW, a resizer is also shown if an element is a scroll container and the resize property is set to something else than none.
So the pseudo-element should also target that use case.

Sebastian

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

No branches or pull requests

4 participants