Skip to content

Commit

Permalink
Merge pull request #54 from ba-st/53-Add-hyphens-css-property
Browse files Browse the repository at this point in the history
Add hyphens property and test that cover it
  • Loading branch information
gcotelli committed May 30, 2022
2 parents aec4730 + 56349dc commit d433e05
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 d433e05

Please sign in to comment.