Parsing RGBA hex codes fails (feature from CSS Color Module 4)
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 92
- フォーク
- 30
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
When a stylesheet with RGBA hex codes is parsed, it triggers `ERROR`-level logs.
Quick proof from an interactive Python session using `cssutils==2.15.0`:
```bash
$ python
Python 3.12.3 (main, Jun 19 2026, 12:46:00) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cssutils
>>> cssutils.parseString("body { color: #00808080; }")
ERROR PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('HASH', '#00808080', 1, 15)
ERROR No content to parse.
ERROR PropertyValue: Unknown syntax or no value: #00808080
ERROR CSSStyleDeclaration: Syntax Error in Property: color: #00808080
cssutils.css.CSSStyleSheet(href=None, media=None, title=None)
```
_CSS Color Module 4_ documents that as a supported syntax (8-digits): https://drafts.csswg.org/css-color/#hex-notation
I guess it's linked to #29 which covers a generic need to implement features from the _CSS Color Module 4_.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
Start by reproducing the issue with cssutils.parseString("body { color: #00808080; }") and trace the parser path for color values. Check the existing handling of CSS Color Module 4 hex notation; done means 8-digit RGBA hex colors parse without ERROR-level logs or property syntax errors.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- web-dev
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 活発
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 68/100