Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Check Whether an SVG Edit Introduced a Broken Reference

An SVG can contain one broken gradient reference before an edit and one after. It can also render exactly the same. To tell whether the edit introduced a new problem, compare the references themselves. We tested this with a folder icon and a circular badge. The requested change was simple: turn the badge outline blue using Codex and the IconVectors MCP server. Start with a defect you can identify…

To determine if an SVG edit introduced a new broken reference, compare the reference details themselves. A test with a folder icon and circular badge showed that the edit only changed the badge's stroke color, leaving the fill, geometry, and stroke width unchanged. When comparing the two files, only 788 pixels differed, consistent with the desired recolor.

To avoid missing regressions, start with a defect that can be identified. For instance, the folder in the test SVG used fill= url(#folderGradient), which lacked an element with the ID folderGradient. The yellow fallback color, #F3C467, kept the folder visible in Edge.

Create a control file by opening the original SVG and saving a copy. Perform the edit on a fresh copy of the SVG, such as changing the badge's stroke to #2563EB and saving again. The control file still had the missing folder gradient reference, while the edited file preserved it. Only the badge's stroke color changed between the control and edited files.

Comparing the two files showed that the 788 changed pixels were consistent with the intended edit. Repeating the process with fresh input yielded byte-identical outputs for each pair of runs. A second example demonstrated that an unchanged error count and image could still hide a new broken reference. To verify, open and save a control copy if your editor may alter SVG markup, record each unresolved reference by element, attribute, and target ID before and after the edit, and compare the added and removed references independently.

When making targeted visual edits, compare the rendered output with a copy containing only the intended change.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Cybersecurity Industry Health Check 2026: the highlights

The verdict Healthy by dollars. Unhealthy by breadth. Cybersecurity startups raised $17.4 billion in the first three quarters of 2026. The money is still there.

  • Cybersecurity startups raised $17.4 billion in Q3 2026, highest quarterly total in years
  • Cyera secured $1.4 billion across three rounds and acquired Oasis Security for $1 billion
  • Industry shift towards platform-based security solutions with Cyera's AI agent focus

P5 - Permissions in OKE: the node has identity, and all its pods inherit it

"Kubernetes on OCI at the lowest cost" series — part 5. In part 4 we set up the cluster and node pools. Here's how what's running inside gets permissions on OCI.

  • Nodes in OKE cluster receive permissions via their instantaneous identity
  • Two types of identity in OCI: users with own keys and principal instance
  • Each pod inherits permissions based on applied policy upon creation

The week everything fell apart

There was a dayslong Outlook outage. A nationwide ground stop for only the second time in 25 years. Banks seemed to suddenly stop working. Even iCloud couldn't stay up and running.

A short glossary for a reusable prompt

Most prompts are written once, in a chat box, for one job. A reusable one has a few extra parts, and they have names. Here they are, six terms, with one prompt from the PromptAlo community library as…

  • Backup and Restore Policy defines the prompt's context and purpose
  • Variables are bracketed fields user fills each prompt use
  • Quality checklist ensures answer meets accuracy and reliability criteria

More from Friday 20 November →