Skip to content

[css-link-params] URL fragments should be consistent with existing SVG fragments #9051

@faceless2

Description

@faceless2

It's unclear how the format for parameters encoded in a URL are supposed to play with existing URL fragments in SVG.

The current SVG spec lets you combine a timesegment (eg t=10) with (for example) a spacesegment (eg xywh=10,10,20,20 by separating them with an ampersand: test.svg#t=10&xywh=10,10,20,20. The css-linked-params spec is silent on how to combine these existing segment parameters with param(), but presumably we'd use the same model test.svg#t=10&xywh=10,10,20,20&param(--foo%20blue)? The spec could do with specifying this.

Secondly, assuming we go this way it feels inconsistent that if we have multiple parameters, we don't use an ampersand to separate them

  • test.svg#t=10&xywh=10,10,20,20&param(--foo%20blue)param(--bar%20red)
  • test.svg#t=10&xywh=10,10,20,20&param(--foo%20blue)&param(--bar%20red)

The second one feels more correct to me, but at the moment the spec says no ampersand is used.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions