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
Expected behaviour of contentEditable, slot and distributed nodes #579
Comments
The expected behavior is that nothing inside the slots will become editable. |
Yeah, that is the intended behavior of the current spec. |
It seems there are bug in Blink for handling "--webkit-user-modify" CSS property, Blink use "--webkit-user-modify" CSS property to control editability. BTW, V0 Shadow DOM works as expected. Sample: https://jsfiddle.net/cx2jgp8t/1/ |
Yeah that's cleared it up - thanks everyone! Really appreciate all your work on WC. |
I'm curious as to what the expected behaviour is in the following situation:
Given this HTML:
Where
#container
has a shadow root of:From what I've read in the spec, contenteditable - when missing - inherits from the "parent element", so should that mean that none of the distributed elements / nodes be editable? Apart from reference to
contenteditable
not propagating down from Shadow Host to its Shadow Trees, I couldn't see any reference in the Shadow DOM spec either.Trying this out in Chrome 54, the
p
becomes editable, but the unwrapped text node is not - but the contenteditable bounding box still wraps around both when clicking on the text. In Safari 10 neither thep
element nor text node are editable, however contenteditable still gets focus, and wraps around both, as in Chrome.What's the expected behaviour here? Apologies if I've missed something.
The text was updated successfully, but these errors were encountered: