[Webkit-unassigned] [Bug 21680] queryCommandValue("BackColor") returns rgb(0, 0, 0) for elements with transparent background

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 22 19:06:21 PDT 2010


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


Ryosuke Niwa <rniwa at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|queryCommandValue("BackColo |queryCommandValue("BackColo
                   |r") always returns          |r") returns rgb(0,0,0) for
                   |rgb(0,0,0)                  |elements with transparent
                   |                            |background




--- Comment #8 from Ryosuke Niwa <rniwa at webkit.org>  2010-03-22 19:06:21 PST ---
(In reply to comment #7)
> Lets keep this bug focused on the following case:
> <div style="background-color:blue">foo<span id="select-this">bar</span></div>
> 
> Dealing with absolute positioning or transparency should be separate, lower
> priority bugs.

Sure.  We can file a separate bug for those cases.  But we probably still need
to consider different values of alpha since the only way to detect this case to
look at the computed style and see if the alpha value of the background color
is 0.  What if alpha=0.5 or other values?  We should return rgba(0,0,0, 0.5)?

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