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-selector][css-ui] selector for overwrite mode to specify "caret-shape:block" #133

Closed
yosinch opened this issue May 25, 2016 · 3 comments

Comments

@yosinch
Copy link

yosinch commented May 25, 2016

Can we have selector for overwrite mode? If we have a selector for overwrite mode, we could write:

input, textarea, *[contenteditable=true"]:overwrite { caret-shape: block}
@tabatkins tabatkins added selectors-4 Current Work css-ui-3 css-ui-4 Current Work and removed css-ui-3 labels May 25, 2016
@tabatkins
Copy link
Member

Inputs and textareas today don't respect overwrite (at least in my initial testing) - they always insert. contenteditable does, but you can opt into that switching with caret-shape: auto.

I don't think there's an actual need to tell what mode you're in? (Leaving aside the fact that overwrite mode is the devil.)

@frivoal
Copy link
Collaborator

frivoal commented Jun 3, 2016

I generally agree with @tabatkins, but I will note that caret-shape: auto only has "may" when it comes to switching to a block caret in overwrite mode. I wonder if this should be strengthened.

(That is totally separate from whether there should be an overwrite mode at all, only what happens to an auto shaped caret if you have one and activate it).

@frivoal
Copy link
Collaborator

frivoal commented Dec 5, 2016

Closing this as wontfix, by editor discression, which seems appropriate at this (early) stage of the spec.

@yosinch I'd appreaciate if you could let me know, based on the explantions above, if you can live with that.

@frivoal frivoal closed this as completed Dec 5, 2016
birtles added a commit to birtles/csswg-drafts that referenced this issue Dec 4, 2017
frivoal pushed a commit to frivoal/csswg-drafts that referenced this issue Nov 15, 2018
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

3 participants