Skip to content

Commit

Permalink
Add hyphens property and test that cover it
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasgiorda1999 committed May 27, 2022
1 parent aec4730 commit 56349dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/RenoirSt-Core/CssDeclarationBlock.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,12 @@ CssDeclarationBlock >> height: aWidth [
self propertyAt: 'height' put: aWidth
]

{ #category : #'text properties' }
CssDeclarationBlock >> hyphens: aCssValue [

self propertyAt: 'hyphens' put: aCssValue
]

{ #category : #'initialize-release' }
CssDeclarationBlock >> initialize [

Expand Down
1 change: 1 addition & 0 deletions source/RenoirSt-Tests/CssDeclarationBlockTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ CssDeclarationBlockTest >> testPrintStringOfTextDecorationProperties [
CssDeclarationBlockTest >> testPrintStringOfTextProperties [

self
assert: [ :style | style hyphens: #auto ] rendersProperty: 'hyphens' withValue: 'auto';
assert: [ :style | style letterSpacing: #normal ] rendersProperty: 'letter-spacing' withValue: 'normal';
assert: [ :style | style textAlign: #center ] rendersProperty: 'text-align' withValue: 'center';
assert: [ :style | style textDecoration: #underline ] rendersProperty: 'text-decoration' withValue: 'underline';
Expand Down

0 comments on commit 56349dc

Please sign in to comment.