Wrong specificity
还没有人认领这个 Issue。
评估
调研方向
先运行提供的 CSSParser.parseString 复现,然后跟踪所示选择器的 selectorList[0].specificity 是如何计算的。将结果与链接计算器给出的预期 specificity 进行比较;当报告的 specificity 得到修正,且复现不再显示该差异时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
Hello,
I got wrong specificity on this selector .form-floating > .form-control:focus ~ label::after, with https://specificity.keegan.st/ I see 032 whereas with your tool 022
Script to reproduce :
from cssutils import CSSParser
parser = CSSParser(parseComments=False, validate=None)
allrules = parser.parseString(
".form-floating > .form-control:focus ~ label::after{color:red}"
)
for el in allrules:
print(el.selectorList[0].specificity) # (0, 0, 2, 2)
Thanks
- 主要语言
- Python
- 星标
- 92
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jaraco/cssutils 的其他 Issue
-
Missing CSS property: overflow-wrap可能已有人在做 @cananoo 于 44 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
help wanted
难度 4/5 3-5 天 新手友好度 35/100
-
enhancement help wanted
难度 5/5 一周以上 新手友好度 25/100
-
good first issue help wanted
难度 3/5 1-2 天 新手友好度 45/100
相似的 Issue
-
[BUG] Container scenario crashes without expected_recovery_time, kube DNS example uses retry_wait未关闭needs-triage
难度 2/5 1-3 小时 新手友好度 77/100
krkn-chaos/krkn#1627 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
NousResearch/hermes-agent#136483 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
[BUG] LazyStackedTensorDictStore zeroes the last byte of a new key set on the last element可能已有人在做 @peterdsharpe 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 78/100
pytorch/tensordict#2307 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复