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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jan 14 12:53:13 PST 2013


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

           Summary: [CSS Regions]  Selecting text inside + outside regions
                    does not work properly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rhauck at adobe.com


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() 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 stops being highlighted when the mouse moves over the region, but continues highlighting once it moves back out of the region
- The text int the region is highlighted
- window.getSelection() does not contain any of the text in the region

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
- window.getSelection() contains all of the text on the page, including text outside (before) the region that was not part of the selection.

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() 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() contains all of the text on the page, including text outside (before) the region that was not part of the selection.

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 entire page is selected - I'm unable to stop the selection within the region
- window.getSelection() contains all of the text on the page

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 entire page is selection
- However, when I do bring my mouse all the way back out to the text outside the region, window.getSelection() does not contain the text in the region




Additional Info:
- In the attached test file, the range of text returned from window.getSelection() is displayed in a div after each selection. You'll notice that sometimes fragments of that text gets dropped randomly into the region. I assume that's related to the general selection misbehavior here, but double-check the JS in that file in case there's a bug there :)

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