Skip to content

Add the hyphens property - #204

Merged
TylerBrinks merged 1 commit into
TylerBrinks:masterfrom
jhaygood86:feature/hyphens-property
Jul 23, 2026
Merged

Add the hyphens property#204
TylerBrinks merged 1 commit into
TylerBrinks:masterfrom
jhaygood86:feature/hyphens-property

Conversation

@jhaygood86

Copy link
Copy Markdown
Contributor

Feature

Adds the hyphens property (CSS Text 3 §6.1):

hyphens: none | manual | auto

It is inherited, with an initial value of manual.

Implementation

Follows the existing keyword-property pattern (e.g. white-space): a Hyphens enum, a Map.HyphensModes dictionary, a Converters.HyphensConverter, the new manual keyword, and an inherited HyphensProperty registered in PropertyFactory.

Tests

7 cases in PropertyTests/TextProperty.cs: the three keywords (plus a case-insensitivity check) parse and round-trip; always, a number, and two keywords together are rejected.

The four legal-value tests fail on master (the property is unknown there). The full suite (1263 existing tests) stays green, and all seven target frameworks build with no new warnings.

hyphens: none | manual | auto (CSS Text 3 6.1) had no support. Add the
Hyphens enum, its keyword map and converter, the "manual" keyword, and
an inherited HyphensProperty registered in PropertyFactory, following the
same enum/Map/converter pattern as the other keyword text properties.
The initial value is manual.
@jhaygood86
jhaygood86 marked this pull request as ready for review July 22, 2026 22:38
@TylerBrinks
TylerBrinks merged commit 8a5ae1f into TylerBrinks:master Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants