mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Introduce background shorthand property (#5053)
* Introduce background shorthand style property * Add text property in parser for BackgroundPosition value reason: prevent parsing of background position (pass it as sample string) * Introduce background-shorthand test page * Modify parser unit tests to respect the new BackgroundPosition 'text' property
This commit is contained in:
committed by
Svetoslav
parent
ac3c895c89
commit
fc9a0b7ad8
@@ -96,6 +96,7 @@ describe("css", () => {
|
||||
image: "smiley.gif",
|
||||
repeat: "no-repeat",
|
||||
position: {
|
||||
text: "top 50% left 100% ",
|
||||
x: { align: "left", offset: { value: 1, unit: "%" }},
|
||||
y: { align: "top", offset: { value: 0.5, unit: "%" }}
|
||||
}
|
||||
@@ -105,6 +106,7 @@ describe("css", () => {
|
||||
image: "smiley.gif",
|
||||
repeat: "no-repeat",
|
||||
position: {
|
||||
text: "top 50% left 100% ",
|
||||
x: { align: "left", offset: { value: 1, unit: "%" }},
|
||||
y: { align: "top", offset: { value: 0.5, unit: "%" }}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user