-
Notifications
You must be signed in to change notification settings - Fork 28
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
Add testcases for that <span contenteditable>
is followed by <div>
#368
Add testcases for that <span contenteditable>
is followed by <div>
#368
Comments
@masayuki-nakano Could you put up a PR of what the test changes would look like? |
(Sorry for the delay to reply, I was on a short vacation, I'll post it in this week.) |
…s 2 line breaks at end of `<span contenteditable>` if it's followed by a `<div>` `insertParagraph` and `insertLineBreak` at `<span contenteditable>foo[]</span><div>bar</div>` requires 2 line breaks to make the last empty line visible. This changeset adds the tests. web-platform-tests/interop#368
Seems ok to me |
@masayuki-nakano is working on Gecko, so I think we need Chromium input on this one. |
Approved from Chromium. |
@masayuki-nakano Please feel free to merge the PR and close this issue fwiw. |
@nt1m Nobody has reviewed my patch so that I cannot merge the PR. |
@makotokato / @rniwa Can you help take a look at this PR: web-platform-tests/wpt#41036 ? |
@kojiishi / @xiaochengh / @makotokato / @rniwa could you help review the PR: web-platform-tests/wpt#41036 ? |
…s 2 line breaks at end of `<span contenteditable>` if it's followed by a `<div>` (#41036) `insertParagraph` and `insertLineBreak` at `<span contenteditable>foo[]</span><div>bar</div>` requires 2 line breaks to make the last empty line visible. This changeset adds the tests. Fixes web-platform-tests/interop#368
… and `insertLineBreak` insert…, a=testonly Automatic update from web-platform-tests Add automated tests of `insertParagraph` and `insertLineBreak` inserts 2 line breaks at end of `<span contenteditable>` if it's followed by a `<div>` (#41036) `insertParagraph` and `insertLineBreak` at `<span contenteditable>foo[]</span><div>bar</div>` requires 2 line breaks to make the last empty line visible. This changeset adds the tests. Fixes web-platform-tests/interop#368 -- wpt-commits: eea2d9d3d90981ff559e9b9868e3211b38841d1c wpt-pr: 41036
… and `insertLineBreak` insert…, a=testonly Automatic update from web-platform-tests Add automated tests of `insertParagraph` and `insertLineBreak` inserts 2 line breaks at end of `<span contenteditable>` if it's followed by a `<div>` (#41036) `insertParagraph` and `insertLineBreak` at `<span contenteditable>foo[]</span><div>bar</div>` requires 2 line breaks to make the last empty line visible. This changeset adds the tests. Fixes web-platform-tests/interop#368 -- wpt-commits: eea2d9d3d90981ff559e9b9868e3211b38841d1c wpt-pr: 41036
… and `insertLineBreak` insert…, a=testonly Automatic update from web-platform-tests Add automated tests of `insertParagraph` and `insertLineBreak` inserts 2 line breaks at end of `<span contenteditable>` if it's followed by a `<div>` (#41036) `insertParagraph` and `insertLineBreak` at `<span contenteditable>foo[]</span><div>bar</div>` requires 2 line breaks to make the last empty line visible. This changeset adds the tests. Fixes web-platform-tests/interop#368 -- wpt-commits: eea2d9d3d90981ff559e9b9868e3211b38841d1c wpt-pr: 41036 UltraBlame original commit: 6aa7226dcc167d8b94477e2246df2d8174206cd3
… and `insertLineBreak` insert…, a=testonly Automatic update from web-platform-tests Add automated tests of `insertParagraph` and `insertLineBreak` inserts 2 line breaks at end of `<span contenteditable>` if it's followed by a `<div>` (#41036) `insertParagraph` and `insertLineBreak` at `<span contenteditable>foo[]</span><div>bar</div>` requires 2 line breaks to make the last empty line visible. This changeset adds the tests. Fixes web-platform-tests/interop#368 -- wpt-commits: eea2d9d3d90981ff559e9b9868e3211b38841d1c wpt-pr: 41036 UltraBlame original commit: 6aa7226dcc167d8b94477e2246df2d8174206cd3
… and `insertLineBreak` insert…, a=testonly Automatic update from web-platform-tests Add automated tests of `insertParagraph` and `insertLineBreak` inserts 2 line breaks at end of `<span contenteditable>` if it's followed by a `<div>` (#41036) `insertParagraph` and `insertLineBreak` at `<span contenteditable>foo[]</span><div>bar</div>` requires 2 line breaks to make the last empty line visible. This changeset adds the tests. Fixes web-platform-tests/interop#368 -- wpt-commits: eea2d9d3d90981ff559e9b9868e3211b38841d1c wpt-pr: 41036 UltraBlame original commit: 6aa7226dcc167d8b94477e2246df2d8174206cd3
Test List
https://wpt.fyi/results/?label=master&label=experimental&aligned&q=%2Fediting%2Fother%2Finsertparagraph-in-inline-editing-host.tentative.html
Rationale
I forgot to put the testcases into the test. If
insertParagraph
at<span contenteditable>foo[]</span><div>bar</div>
occurs,<span contenteditable>foo<br></span><div>bar</div>
is not enough to make the new empty line visible. The builtin editors need to make it<span contenteditable>foo<br><br></span><div>bar</div>
.I think we should duplicate those tests and replace the outer
<br>
element with<div>efg</div>
.The text was updated successfully, but these errors were encountered: