Skip to content

Optionally update :target styles #162

@jakearchibald

Description

@jakearchibald

Currently the target element is set as part of scrolling https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid:target-element-3, so it doesn't happen as part of pushState.

stephband suggested on Twitter that they'd like the target styles to update.

Perhaps the easiest way to handle this is to allow the target element to be get/set via something like document.targetElement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    additionA proposed addition which could be added later without impacting the rest of the API

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions