Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cssutils/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,5 +727,6 @@ def validateWithProfile(self, name, value, profiles=None): # noqa: C901

macros[Profiles.CSS3_TEXT] = {}
properties[Profiles.CSS3_TEXT] = {
'overflow-wrap': 'normal|break-word|anywhere|inherit|initial|unset',
'text-shadow': 'none|{shadow}({w},{w}{shadow})*',
}
1 change: 1 addition & 0 deletions newsfragments/82.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Recognize the CSS Text Level 3 ``overflow-wrap`` property.
5 changes: 5 additions & 0 deletions tests/test_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,11 @@ def test_validate(self):
'black',
),
): (False, False, C3T),
(
'overflow-wrap',
('normal', 'break-word', 'anywhere', 'inherit', 'initial', 'unset'),
): (True, True, C3T),
('overflow-wrap', ('auto', 'wrap', 'break_word')): (False, False, C3T),
('unicode-range', ('u+1', 'U+111111-ffffff', 'u+123456 , U+1-f')): (
True,
True,
Expand Down