-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS background shorthand property #2992
Comments
Hi @aboalwi, XML
CSS
Hope this helps. |
What i'm saying (in web) background: red; will work just fine.. that's how css works.. it's just a little thing not a big deal it would be nice for it to work in nativescript too.. since we are used to it... yea |
This looks reasonable. The definition of how this property is used on web is here - http://www.w3schools.com/cssref/css3_pr_background.asp @hshristov - is this something we can support, in order to have the same behavior with the web? |
@valentinstoychev Yes we can support it. |
for proper documentation please do not refer to w3 fools. use MDN instead.. https://developer.mozilla.org/en-US/docs/Web/CSS/background-color |
Same goes for the
Don't think border style is possible though, so having this wouldn't work (?):
Correct me if I'm wrong about above. |
@NordlingArt Currently, we only support solid borders, i.e. no dotted, dashes, etc. |
By the way, in order to parse a shorthand value like this:
I would need to rip of the source code of one of the web browser engines. The formal syntax of the The props can appear in any order they like and some of them may be omitted. Nice! |
It is beautiful :)
|
That is a great task for the community. Write a function that accepts a shorthand background string and returns a JSON object containing background-color, -image, -position, -size, and -repeat. |
This might give you a hint. |
@vjoao Thanks, I will check it out. |
Animated GIF for background do not work, shorthanded or not.
The GIF is shown, but statically, not the animation it contains. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I know i should be using background-color and it will work but you don't know how i'm used to it this way.. it's web developer friendly ... please :)
The text was updated successfully, but these errors were encountered: