forked from gcotelli/RenoirSt
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from ba-st/ColorUnitsJS
CSSColorUnits now render between " when used inside javascript.
- Loading branch information
Showing
11 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
source/RenoirSt-Seaside-Tests.package/CssHSLColorTest.extension/instance/testJavascriptOn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*RenoirSt-Seaside-Tests | ||
testJavascriptOn | ||
|
||
| color | | ||
|
||
color := CssHSLColor hue: 120 saturation: 100 percent lightness: 50 percent. | ||
|
||
self assert: color asJavascript equals: '"hsl(120,100%,50%)"' |
5 changes: 5 additions & 0 deletions
5
source/RenoirSt-Seaside-Tests.package/CssHSLColorTest.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"testJavascriptOn" : "JulianMaestri 4/1/2017 12:05" } } |
2 changes: 2 additions & 0 deletions
2
source/RenoirSt-Seaside-Tests.package/CssHSLColorTest.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "CssHSLColorTest" } |
8 changes: 8 additions & 0 deletions
8
source/RenoirSt-Seaside-Tests.package/CssRGBColorTest.extension/instance/testJavascriptOn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
*RenoirSt-Seaside-Tests | ||
testJavascriptOn | ||
|
||
| color | | ||
|
||
color := (CssRGBColor red: 255 green: 0 blue: 0 alpha: 0.5). | ||
|
||
self assert: color asJavascript equals: '"rgba(255,0,0,0.5)"' |
5 changes: 5 additions & 0 deletions
5
source/RenoirSt-Seaside-Tests.package/CssRGBColorTest.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"testJavascriptOn" : "JulianMaestri 4/1/2017 12:05" } } |
2 changes: 2 additions & 0 deletions
2
source/RenoirSt-Seaside-Tests.package/CssRGBColorTest.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "CssRGBColorTest" } |
6 changes: 6 additions & 0 deletions
6
source/RenoirSt-Seaside.package/CssColorUnit.extension/instance/javascriptOn..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
*RenoirSt-Seaside | ||
javascriptOn: aStream | ||
|
||
aStream nextPut: $". | ||
self cssContentOn: aStream. | ||
aStream nextPut: $" |
5 changes: 5 additions & 0 deletions
5
source/RenoirSt-Seaside.package/CssColorUnit.extension/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"class" : { | ||
}, | ||
"instance" : { | ||
"javascriptOn:" : "JulianMaestri 4/1/2017 12:01" } } |
2 changes: 2 additions & 0 deletions
2
source/RenoirSt-Seaside.package/CssColorUnit.extension/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
"name" : "CssColorUnit" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Accessing | ||
initial | ||
|
||
^'initial' |