[Webkit-unassigned] [Bug 41583] New: Repaint missed when adding a class to an element created by surrounding a range

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jul 4 13:33:30 PDT 2010


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

           Summary: Repaint missed when adding a class to an element
                    created by surrounding a range
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh Intel
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Layout and Rendering
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: nathan.whetsell at gmail.com


Created an attachment (id=60477)
 --> (https://bugs.webkit.org/attachment.cgi?id=60477)
Test document

The test document consists of the word "test" in three places at the beginning and end of some lorem ipsum text. The occurrences of "test" are highlighted using a CSS style. The first occurrence starts out with a shadow (also a CSS style). Pressing the "Next" and "Previous" buttons should move the shadow to the other occurrences.

Apparently, pressing Next once after the document loads does move the shadow to the next "test", it is just not being repainted. On a Mac, switching to another application and then switching back to Safari will show the shadow as expected.

This appears to have something to do with the lines on which the "test" strings appear. If all three "test" strings appear on the same line, the shadow is painted as expected. Also, the second "test" string is enclosed in a <span> with some whitespace at the end, literally <span>test </span>. Eliminating the whitespace (or the <span>) also results in expected repaint behavior. Finally, the spans used for the highlighting and shadows are created by enclosing range objects; they aren't part of the markup on loading. If these spans are made part of the markup, repainting occurs as expected.

Expected repainting behavior occurs in Firefox and (strangely) Google Chrome.

-- 
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