์ผ€์ด์Šค ce-0079 ยท ์‹œ๋‚˜๋ฆฌ์˜ค scenario-contenteditable-inheritance

contenteditable inheritance behavior is inconsistent

OS: Windows 11 ๊ธฐ๊ธฐ: Desktop or Laptop Any ๋ธŒ๋ผ์šฐ์ €: Firefox 120.0 ํ‚ค๋ณด๋“œ: US ์ดˆ์•ˆ
inheritancenestedfirefoxwindows

์ด ํŽ˜์ด์ง€๋Š” ์•„์ง ๋ฒˆ์—ญ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค

ํ˜„์žฌ ์˜์–ด ์›๋ฌธ์„ ํ‘œ์‹œํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๋ฒˆ์—ญ์— ๊ธฐ์—ฌํ•ด ์ฃผ์‹œ๋ฉด ๊ฐ์‚ฌํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

Phenomenon

When a parent element has contenteditable="true" and a child element has contenteditable="false", the inheritance behavior is inconsistent across browsers. Some browsers allow editing in the child, while others correctly prevent it. The behavior may also differ when the child has contenteditable="inherit" or no contenteditable attribute.

Reproduction example

  1. Create a parent div with contenteditable="true".
  2. Add a child element with contenteditable="false".
  3. Add another child with contenteditable="inherit".
  4. Add another child with no contenteditable attribute.
  5. Try to edit each child and observe behavior.

Observed behavior

  • In Firefox on Windows, inheritance behavior is inconsistent.
  • Children with contenteditable="false" may still be editable.
  • Children with contenteditable="inherit" may not inherit correctly.
  • Children without the attribute may or may not be editable.

Expected behavior

  • contenteditable="false" should always prevent editing.
  • contenteditable="inherit" should inherit from parent.
  • Children without the attribute should inherit from parent.
  • Behavior should be consistent across browsers.

Playground for this case

Use the reported environment as a reference and record what happens in your environment while interacting with the editable area.

Reported environment
OS: Windows 11
Device: Desktop or Laptop Any
Browser: Firefox 120.0
Keyboard: US
Your environment

Use this editable area to reproduce the described case.

Event log
Use this log together with the case description when filing or updating an issue.
0 events
Interact with the editable area to see events here.