[Webkit-unassigned] [Bug 24021] pseudo-element styles not accessible / retrievable via DOM methods

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 2 18:35:42 PST 2010


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


Jessie Berlin <jberlin at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #45754|                            |review?
               Flag|                            |




--- Comment #2 from Jessie Berlin <jberlin at webkit.org>  2010-01-02 18:35:40 PST ---
Created an attachment (id=45754)
 --> (https://bugs.webkit.org/attachment.cgi?id=45754)
A tentative idea for a fix that will expose the standard pseudo-elements
through getComputedStyle

I would highly appreciate feedback on the general approach.

 As I write in the ChangeLog, there are several parts of this patch that I am
mildly uncomfortable with:

        1) The need to duplicate the pseudo style string to pseudo style
constant
           mapping that is done in CSSSelector::extractPseudoType(). I was
unable
           to find a mapping between PseudoType and PseudoId and decided it
made
           mores sense to map from the string itself to the PseudoId
        2) This patch won't give the desired results for the -webkit-scrollbar
           pseudo-elements.
        3) I am not sure that going directly to the renderer is correct.
Looking
           in Element::computedStyle(), there seems to be an option for
elements
           like HTMLOptionElement to not have renderers. I am not exactly sure
           why this is.

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