html - 带有 contenteditable 的 Chrome 错误和带有 display:flex 的列表
问题描述
在这个片段中,使用 contenteditable 和一个带有 的列表display:flex
,会导致一个奇怪的错误:添加两个新行后,所有内容都消失了。它不会发生在其他浏览器中。
<html>
<head>
</head>
<body contenteditable>
<ol>
<li style="display:flex">Row1</li>
<li style="display:flex">Row2</li>
<li style="display:flex">Row3 (type enter TWICE after this)</li>
</ol>
</body>
</html>
示例:https ://jsfiddle.net/7sLn16mw
任何想法?
解决方案
这被 Chromium 开发团队认为是错误:
https://bugs.chromium.org/p/chromium/issues/detail?id=1038520
在 Chrome 81 中修复
推荐阅读
- node.js - 在 nodejs.db2 中触发插入查询时出错
- css - 如何做一个在Angular中部署菜单的“粘性”按钮?
- html - 如何在电子邮件签名中调整css中的图像大小?
- git - github-actions 获取 deployment_status 事件的分支名称或 PR 编号
- ios - EKEventEditViewController EKAlarm 警报标题已损坏
- ios - 如何在 Swift 中使用宽度约束将 Xib 加载到 CollectionView?
- swift - 如何在 Swift 中声明和初始化大于 UInt64 的常量?
- postgresql - 带有部分索引的 SQLAlchemy Postgres upsert
- html - 如何在移动浏览器的网页上显示左右箭头?
- java - 将图片从我的应用存储移动到 Android 10+ 上的 DCIM 或图片目录