No support for rem
还没有人认领这个 Issue。
评估
调研方向
从 issue 中显示的长度模式入手,检查 cssutils/profiles.py,并了解 CSS 属性值是如何进行验证的。检查现有的长度单位处理,并确认诸如 0.75rem 这样的值不再产生所报告的 invalid-value 错误。
由索引模型根据 Issue 内容生成。
描述
If I use rem as a length unit, I get an "invalid value" error:
ERROR Property: Invalid value for "CSS Backgrounds and Borders Module Level 3" property: 0.75rem [1:1: border-radius]
On investigation, it seems that in https://github.com/jaraco/cssutils/blob/main/cssutils/profiles.py, rem is not supported as a unit:
'length': r'0|{num}(em|ex|px|in|cm|mm|pt|pc)',
Is this something that could be added? I'm not particularly familiar with this module as it's a subdependency so I don't know if it would take more than just adding it to the pattern.
- 主要语言
- Python
- 星标
- 92
- 派生
- 30
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
jaraco/cssutils 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 78/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
help wanted
难度 4/5 3-5 天 新手友好度 35/100
-
help wanted
难度 3/5 1-2 天 新手友好度 45/100
-
enhancement help wanted
难度 5/5 一周以上 新手友好度 25/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
anthropics/skills#1811 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
speaches-ai/speaches#678 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
datalayer/mcp-compose#42 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
conda-forge/spacy-feedstock#177 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
UKGovernmentBEIS/inspect_evals#2523 ·