[Webkit-unassigned] [Bug 207291] New: Expose methods to retrieve a PseudoElement given a PseudoId on Element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 5 13:11:52 PST 2020


            Bug ID: 207291
           Summary: Expose methods to retrieve a PseudoElement given a
                    PseudoId on Element
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: graouts at webkit.org

The Web Animations specification has added a `pseudoElement` property on `KeyframeEffect`, see bug 207290 tracking its implementation in WebKit. However, `Element` currently only exposes `beforePseudoElement` and `afterPseudoElement` and these are only created under certain circumstances, mostly if `content` is set for one of those pseudo-elements. It appears that pseudo-elements should also be created as needed to be the target of an animation, regardless of what `content` is set to. Specifically, the specification for `content: none` says:

    On elements, this inhibits the children of the element from being rendered as children of this element, as if the element was empty.
    On pseudo-elements it inhibits the creation of the pseudo-element as if it had display: none.
    In neither case does it prevent any pseudo-elements which have this element or pseudo-element as an originating element from being generated.

It would be great to have a method along the lines of `Element::ensurePseudoElement(PseudoId)` where we can get a `PseudoElement` for any of our known pseudo-elements.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200205/78b8eef0/attachment-0001.htm>

More information about the webkit-unassigned mailing list