Missing CSS property: overflow-wrap
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 78/100
調査の方向性
cssutils/profiles.py を開き、既知のプロパティ名と値のパターンが定義されている CSS3_TEXT プロファイルを読みます。そこに不足しているプロパティエントリを追加し、その後、overflow-wrap が unknown-property warning なしで認識され、issue に記載された値を受け入れることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Description
overflow-wrap is not in the known properties list, causing the following warning:
Property: Unknown Property name. [overflow-wrap]
Background
overflow-wrap was standardized in CSS Text Module Level 3 as the official
replacement for the IE-era word-wrap property. It has been supported in all
major browsers since 2017 and is defined here:
https://www.w3.org/TR/css-text-3/#overflow-wrap-property
Suggested Fix
Add overflow-wrap to the CSS Text Level 3 profile in cssutils/profiles.py:
# CSS Text Level 3
properties[Profiles.CSS3_TEXT] = {
...
'overflow-wrap': 'normal|break-word|anywhere|inherit|initial|unset',
'word-wrap': 'normal|break-word|inherit|initial|unset', # legacy alias
}
Workaround
Users can currently work around this by manually registering the property:
import cssutils
cssutils.profile.addProfile(
'overflow-wrap support',
{'overflow-wrap': 'normal|break-word|anywhere|inherit|initial|unset'},
{}
)
Environment
- cssutils version: 2.15.0
- Python version: 3.x
- 主要言語
- Python
- スター
- 92
- フォーク
- 30
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jaraco/cssutils のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
Wrong specificity オープンhelp wanted
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
-
enhancement help wanted
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
good first issue help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
jaraco/cssutils の issue をすべて見る
似ている issue
-
essnmx good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
[Feature] 奇物选择添加优先级 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
syfoud/Simulated_Scepter#174 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Giskard-AI/giskard-oss#2840 · コメント 1 件 ·
-
A claim comment carrying the issue number is silently declined while the workflow reports success オープンarea: repo bug perceived difficulty: 2
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
yeti-platform/yeti#1380 ·