jaraco / jaraco/cssutils

No support for rem

オープン
#20 コメント 2 件 リアクション 4 件 担当者 0 名 GitHub で見る
enhancement help wanted
主要言語
Python
スター
92
フォーク
30
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

issue に示されている長さのパターンを起点に cssutils/profiles.py を確認し、CSS プロパティ値がどのように検証されているかを調べます。既存の長さ単位の処理を確認し、0.75rem のような値で報告されている invalid-value エラーが発生しなくなっていることを検証します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
css, python
領域
frontend
issue の種類
バグ
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。