Skip to content

[css-images] Integrate with SVG Integration spec #4640

Open

Description

@upsuper

The SVG Integration defines several referencing mode for how SVG should be used.

For the concern of the CSS Images spec, SVG should probably be using the animated image document referencing mode, which means external resources and scripts are disallowed.

I believe this is already the practice in all browsers, but it's not mentioned in the spec.

(HTML has a similar issue in whatwg/html#702)

Activity

  1. svgeesus commented on Jan 1, 2020

    @svgeesus
    Collaborator

    For the concern of the CSS Images spec, SVG should probably be using the animated image document referencing mode, which means external resources and scripts are disallowed.

    Yes. Note that this also disallows external stylesheets.

    P.S. I believe the svg integration processing modes were folded into the SVG2 spec as processing modes.

  2. upsuper commented on Jan 5, 2020

    @upsuper
    MemberAuthor

    Yes, the processing modes have been folded into SVG2 spec (but they have some differences), but the reference modes have not.

  3. svgeesus commented on Jan 6, 2020

    @svgeesus
    Collaborator

    Hmm, that seems suboptimal. There should be one source of truth for a thing. If the reference modes remain in a separate spec, the processing modes should be removed and reference SVG2.

  4. added this to the TPAC-2020-08-22 milestone on Oct 16, 2020
  5. css-meeting-bot commented on Oct 22, 2020

    @css-meeting-bot
    Member

    The CSS Working Group just discussed Integrate with SVG Integration spec.

    The full IRC log of that discussion <Rossen_> Topic: Integrate with SVG Integration spec
    <Rossen_> github: https://github.com//issues/4640
    <fremy> chris: svg integration has two things, only one of which got folded in svg 2
    <fremy> chris: one is what happens when you embed in svg
    <fremy> ... the other is what happens when you use svg in html
    <fremy> TabAtkins: what needs to be done?
    <fremy> chris: we need to decide what we do, and what we map to each of these modes
    <fremy> Rossen_: shouldn't we do more of this ahead of time?
    <fremy> Rossen_: and make a concrete proposal?
    <fremy> chris: yes, we should probably do that, and investigate whether script can run, animations can run etc...
    <fremy> florian: for the cursors we already specify one of these modes
    <fremy> TabAtkins: I think for general css images we also specify a mode I think
    <fantasai> https://www.w3.org/TR/css-images-4/#image-file-formats
    <fremy> TabAtkins: but yeah we should probably do more work on this before submitting to the group
    <fremy> Rossen_: ok let's do that
    <fremy> Rossen_: was that everything about the topic?
    <fremy> chris: yes
    <fremy> fantasai: there is a proposal in images 4
    <fremy> fantasai: I pasted the link
    <fremy> fantasai: (reads aloud)
    <fremy> florian: seems to be what we do for cursor
    <fantasai> https://drafts.csswg.org/css-images-4/#image-file-formats
    <fremy> chris: ok, i think this makes sense
    <florian> https://www.w3.org/TR/css-ui-3/#ref-for-url-value%E2%91%A0
    <fremy> chris: I will review and bring this back if needed
    <fremy> Rossen_: thanks!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions