Missing CSS property: overflow-wrap
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 78/100
Research direction
Open cssutils/profiles.py and read the CSS3_TEXT profile where the known property names and value patterns are defined. Add the missing property entry there, then verify that overflow-wrap is recognized without the unknown-property warning and accepts the values described in the issue.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Python
- Stars
- 92
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from jaraco/cssutils
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Wrong specificity Openhelp wanted
Difficulty 3/5 1-2 days Newbie friendliness 45/100
-
enhancement help wanted
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
good first issue help wanted
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
canonical/paas-charm#368 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
tech debt
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
StevenBlack/hosts#3256 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
qualcomm/qai-appbuilder#275 ·