w3c / w3c/csswg-drafts

[css-values] Define that loading a document as a reference should restrict its internal references

Open
#4,152 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

css-values-5 topic: urls
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description

Loading an SVG as an image (via <img>, 'background-image', etc) restricts it from talking to the network at all; it can only refer to its own internal elements.

  1. The restrictions should be more explicitly stated for CSS images.
  2. The same restrictions should be applied to SVGs loaded for element references (such as 'mask-image' referring to a <mask> element in an external SVG).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named. Start by locating the CSS Values definitions for CSS images and SVG element references, then compare how network and internal-reference restrictions are stated; done when both CSS images and externally loaded SVG element references have explicit matching restrictions.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
documentation, web-dev
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.