[Webkit-unassigned] [Bug 29697] New: REGRESSION: Copy is copying incorrect background-color

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 23 15:20:04 PDT 2009


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

           Summary: REGRESSION: Copy is copying incorrect background-color
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML Editing
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jparent at google.com


Copy from an element with an ancestor that has background-color, inside an html
element with a different background-color is copying the background-color from
the html element rather than the ancestor.

Repro steps:
1. Go to
http://www.plexode.com/cgi-bin/eval3.py#ht=%3Cstyle%3E%0Ahtml%20%7B%0A%20%20background-color%3A%20purple%3B%0A%7D%0A%3C%2Fstyle%3E%0A%3Cdiv%20style%3D%22background-color%3Agreen%22%3E%3Cdiv%3ECopy%20me%3C%2Fdiv%3E%3C%2Fdiv%3E%0A%0A%3Cdiv%20style%3D'background-color%3Awhite'%20contentEditable%3EPaste%20here%3C%2Fdiv%3E&ohh=1&ohj=1&jt=&ojh=1&ojj=1&ms=100&oth=0&otj=0&cex=1
2. Copy "Copy me".
3. Paste in "Paste here"

Result: The "Copy me" text has the background color of the html element, not
the background color it had in the original source
Expected Result: "Copy me" keeps the background color it had

Verified in Webkit Nightly Mac r48680, Webkit Nightly Windows r48679, and
Chrome Windows 4.0.211.4.  Does not reproduce in Safari Windows 4.0.3

You can also observe this in Google Docs.

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