惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Y
Y Combinator Blog
GbyAI
GbyAI
U
Unit 42
WordPress大学
WordPress大学
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
D
DataBreaches.Net
N
Netflix TechBlog - Medium
H
Hackread – Cybersecurity News, Data Breaches, AI and More
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
C
Check Point Blog
Martin Fowler
Martin Fowler
月光博客
月光博客
MongoDB | Blog
MongoDB | Blog
MyScale Blog
MyScale Blog
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
罗磊的独立博客
B
Blog RSS Feed
J
Java Code Geeks
The GitHub Blog
The GitHub Blog

鬼影的基地

RSA:从 00 开始的钥匙串导入崩溃 RSA:从 00 开始的钥匙串导入崩溃 CVE-2025-61638:Sanitizer::validateAttributes data-XSS 萌娘百科水平越权漏洞 萌娘百科头像魔术字 IP 泄露 萌娘百科评论区 IP 泄露 修复 iPhone 13 iOS 16 Safari 中的 Bug 命名空间 在 CSS 中进行数据类型转换 在 iOS 的 Apple Mail 中添加 QQ邮箱 Safari animation Bug 在 macOS 上部署 Viper CSS 自适应简单 Table CSS 像素画的方法
CodeMirror url() Bug
鬼影233 · 2026-06-02 · via 鬼影的基地

前言

CodeMirror 等,甚至 Chromium 下的 inspector-stylesheet 等地方,如果使用空的 url() 值,会导致后续的内容出现高亮异常。

曾经在某些未知的情况下(Chromium 中)会导致后续的代码直接失效的情况,但无法复现。

复现

* {
	background-image: url();
	color: #FF0;
}

将此段代码放入 inspector-stylesheet 中,即可复现。

inspector-stylesheet 中出现了高亮异常,后续字符变为字符串的高亮颜色。

解决方案

* {
	background-image: url("");
	color: #FF0;
}

后记

本 Bug 在 Chromium Issue TrackerGitHub 上都进行了提报,现在已得到了解决。