Repository navigation
script: Render caret inside of contenteditable elements - #48253
Conversation
|
@Psychpsyo You should be able to test this because caret don't blink when WPT tests are running. Create a contenteditable region and make a mismatch reftest ensuring that the version with the caret doesn't look like one without it. |
dfcaf5b to
9fb4f8a
Compare
|
🔨 Triggering try run (#37313130798) for Linux (WPT) |
|
|
61563cd to
3740af5
Compare
|
🔨 Triggering try run (#39589883154) for Linux (WPT) |
|
Test results for linux-wpt from try job (#39589883154): Flaky unexpected result (18)
Stable unexpected results that are known to be intermittent (8)
Stable unexpected results (9)
|
|
|
055da28 to
594f226
Compare
|
Someone thinks this change could be added to the monthly blog post! To help with this, we need someone to answer the following questions: 😄
If this change is part of a broader feature/project please make sure the PR description contains a Please add Thanks for helping us prepare the monthly blog post! ❤️ |
|
I've taken a look at the failed tests now: |
Mainly users, although embedders might be interested for that reason as well.
The text editing caret shows up in
dom_exec_command_enabled
Anything that uses a WYSIWYG text editor, I tend to use https://www.tiny.cloud/docs/tinymce/latest/basic-example/ in testing. |
8ba59d2 to
a712764
Compare
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#64640) with upstreamable changes. |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64640). |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64640). |
1 similar comment
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64640). |
|
🔨 Triggering try run (#41803669577) for Linux (WPT) |
|
|
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64640). |
|
🔨 Triggering try run (#42278501999) for Linux (WPT) |
|
Test results for linux-wpt from try job (#42278501999): Flaky unexpected result (14)
Stable unexpected results that are known to be intermittent (5)
|
|
✨ Try run (#42278501999) succeeded. |
84ee469 to
8ffc89d
Compare
|
That force-push was only me adding the signoff on the commit that was missing it. No code changes. |
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64640). |
Signed-off-by: Psychpsyo (Cameron) <[email protected]>
8ffc89d to
ba42462
Compare
mrobinson
left a comment
There was a problem hiding this comment.
I have a few nits with this such as the mismatch test still missing, but maybe that can be handled as a followup. This PR has probably waited long enough!
|
📝 Transplanted new upstreamable changes to existing upstream WPT pull request (web-platform-tests/wpt#64640). |
New test file that makes sure that a caret is actually visible in a focused contenteditable element. As requested by @mrobinson in servo#48253 (review) Signed-off-by: Psychpsyo (Cameron) <[email protected]>
New test file that makes sure that a caret is actually visible in a focused contenteditable element. As requested by @mrobinson in servo/servo#48253 (review) Signed-off-by: Psychpsyo (Cameron) <[email protected]>
This makes 0-length selections show up as a blinking cursor if they are placed within a contenteditable region of the page.
Part of #25005