csstools / csstools/normalize.css

The rule for nested lists in `normalize.css` and `opinionated.css` is no longer necessary

未关闭 适合新手
#27 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
HTML
星标
656
派生
66
PR 合并指标
30 天内没有已合并 PR

描述

The rule "Remove the margin on nested lists in Chrome, Edge, and Safari" appears in both normalize.css and opinionated.css:

https://github.com/csstools/normalize.css/blob/0774d1043e07ba868f157ff7bb1cd0bbb0a2871c/normalize.css#L32-L39

https://github.com/csstools/normalize.css/blob/0774d1043e07ba868f157ff7bb1cd0bbb0a2871c/opinionated.css#L40-L47

Since Chromium and WebKit already have that rule in their UA stylesheets, I think it can be removed.

- Chromium [fixed it 1 year ago](https://chromium-review.googlesource.com/c/chromium/src/+/6629436): https://github.com/chromium/chromium/blob/0fa7607bb96dc68c2d08d9920ce5da6bc4d3287a/third_party/blink/renderer/core/html/resources/html.css#L358-L365
- WebKit [fixed it 3 years ago](https://github.com/WebKit/WebKit/commit/5febb62e57ba1916cc54cc3cfafc7ac5aef9f003): https://github.com/WebKit/WebKit/blob/b524a4ebf3a70a7b6409c55db9eae74800721dc7/Source/WebCore/css/html.css#L308-L315

贡献指南

打开贡献指南

调研方向

首先比较链接位置中 normalize.css 和 opinionated.css 的嵌套列表规则,然后查看所引用的 Chromium 和 WebKit 用户代理样式表更改。从两个文件中删除不再需要的规则,并确认项目的 CSS 检查或测试仍然通过。

由索引模型根据 Issue 内容生成。

评估

技术栈
css
领域
frontend
Issue 类型
重构
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
68/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。