[Webkit-unassigned] [Bug 106817] [CSS Regions] Selecting text inside + outside regions does not work properly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 14 17:02:18 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=106817





--- Comment #2 from Rebecca Hauck <rhauck at adobe.com>  2013-01-14 17:04:05 PST ---
(In reply to comment #0)
I tested this a little more after I logged this bug, so this is a revised bug report (I can't edit the original). 

This bug covers various scenarios of text selection where the selection includes text both inside and outside a region.  

Each test case has slightly different misbehavior. Steps to reproduce Test 1 - Test 6 are labeled as such in the attached file.

Test 1: Selection begins outside the region and ends in the middle of the region, moving from the top of the document downward
RESULT:
- The selection stops being highlighted as soon as the mouse moves into the region, so the region text never gets highlighted and, depending on how the mouse moves, some of the text outside the region is not highlighted either
- window.getSelection().toString() does not contain any of the text outside the region

Test 2: Selection begins outside the region, goes through the entire region, and ends outside the region, moving from the top of the document to the bottom of the document
RESULT:
- The selection highlighting direction reverses when the mouse moves over the region - you briefly see it flip from the start point upward until the mouse moves back out of the region. Once out of the region, everything is highlighted correctly.
- window.getSelection().toString() contains all the text that is selected correctly.

Test 3:  Selection begins inside the region and ends outside the region, moving from the top of the region to the bottom of the document
RESULT:
- The text inside the region is highlighted correctly, but the highlighting stops when the mouse moves out of the region, so nothing outside of the region is ever highlighted.
- window.getSelection().toString() contains all the text that is selected correctly.

Test 4: Selection begins inside the region and ends outside the region, moving from the bottom of the region to the top of the document
RESULT: 
- The text inside the region is highlighted correctly, but the highlighting stops when the mouse moves out of the region
- window.getSelection().toString() contains nothing

Test 5: Selection begins outside the region and ends inside the region, moving from the bottom of the document upward
RESULT:
Scenario 1: Move the mouse the shortest distance between the 2 points (in test file: straight from word11 to word5)
- The selection stops being highlighted as soon as the mouse moves into the region, so the region text never gets highlighted
- window.getSelection().toString() contains all the text that is selected correctly.

Scenario 2: Move the mouse through all of the text outside of the region before entering the regions (in test file: word11 to word8 then into the region)
- Once the mouse enters the region, the selection highlight jumps up to the top of the document or to a random point near the top - I'm unable to stop the selection within the region
- window.getSelection().toString() contains all of the text that is highlighted (which is more than I selected with my mouse movement)

Test 6: Selection begins outside the region, goes through the entire region, and ends outside the region, moving from the bottom of the document to the top of the document
RESULT:
- As with Test 5, Scenario 2, once the mouse enters the region, the selection highlight jumps to or near the top of the document
- window.getSelection().toString() contains all the text that is selected correctly.

Additional Info:
I tested all of this in a build which included Zoltan's fix for bug #105641.


Lastly, please let me know if this should be split out into separate bugs. I'm currently under the assumption these different symptoms are all from the same underlying problem(s).

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list