Strip inline parents if an inline element becomes empty
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox94 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Blink removes inline parent elements when an inline element becomes empty. However, Gecko does not do it. For web-compat, we should align the behavior to Blink.
Assignee | ||
Comment 1•3 years ago
|
||
Currently, Blink/WebKit strip an inline element becoming empty and its parents
which also becomes empty. However, some tests in editing/run/delete.js and
editing/run/forwarddelete.js are not consistent with the fact.
- https://wpt.fyi/results/editing/run/forwarddelete.html%3F6001-last?run_id=5664920516427776&run_id=5754064710139904&run_id=5670287212281856&run_id=5157691455438848
- https://wpt.fyi/results/editing/run/delete.html%3F6001-7000?run_id=5664920516427776&run_id=5754064710139904&run_id=5670287212281856&run_id=5157691455438848
Additionally, even after deleting parent inline elements, the style should be
preserved for next edit, but there are no tests for it. Therefore, this patch
adds tests for the case into multitest.js.
Assignee | ||
Comment 2•3 years ago
|
||
This change makes deletion of all contents in inline elements compatible with
the other browsers.
Depends on D125368
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/53cd8ff916d5 part 1: Update WPT in the case that an inline element becomes empty r=m_kato https://hg.mozilla.org/integration/autoland/rev/f895a0b6c0e3 part 2: Delete empty inline elements which become newly empty but preserve the styles for next editing r=m_kato
Comment 4•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/53cd8ff916d5
https://hg.mozilla.org/mozilla-central/rev/f895a0b6c0e3
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/30878 for changes under testing/web-platform/tests
Upstream PR merged by moz-wptsync-bot
Description
•