Skip to content

Commit

Permalink
Merge pull request #51 from ba-st/50-Add-relative-longitude-unit-rem-…
Browse files Browse the repository at this point in the history
…to-Float

Add relative longitude unit rem to Float
  • Loading branch information
gcotelli authored May 26, 2022
2 parents 8cf3595 + 5b51831 commit aec4730
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/RenoirSt-Core/Float.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ Float >> rad [
^ self newMeasureWith: RenoirSt units >> #radian
]

{ #category : #'*RenoirSt-Core' }
Float >> rem [

^ self newMeasureWith: RenoirSt units >> #fontSizeOfRootElement
]

{ #category : #'*RenoirSt-Core' }
Float >> s [

Expand Down
3 changes: 3 additions & 0 deletions source/RenoirSt-Tests/CssMeasureTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ CssMeasureTest >> testCreationShortcutsForLengths [
self
assert: 1.3 cm asCssStringEquals: '1.3cm';
assert: 0.8 em asCssStringEquals: '0.8em';
assert: 1.3 rem asCssStringEquals: '1.3rem';
assert: 1.1 in asCssStringEquals: '1.1in';
assert: 2.9 mm asCssStringEquals: '2.9mm';
assert: 0.1 pc asCssStringEquals: '0.1pc'.


]

{ #category : #Tests }
Expand Down

0 comments on commit aec4730

Please sign in to comment.