Skip to content

[css-values] Clarify fragment URLs resolve against the current tree, not document tree #3320

Open
@rniwa

Description

@rniwa

Right now, section 4.4.1.1. fragment URLs say that:

If a url()’s value starts with a U+0023 NUMBER SIGN (#) character, parse it as per normal for URLs, but additionally set the local url flag of the url().

When matching a url() with the local url flag set, ignore everything but the URL’s fragment, and resolve that fragment against the current document that relative URLs are resolved against. This reference must always be treated as same-document (rather than cross-document).

We text should be updated to refer to the current tree so that when the local url flag is set, the fragment is resolved against the current tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-values-4Current Worktopic: urlsTracking issues that'll need edits when CSS URLs are defined on top of Fetch.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions