Title: backgroundPosition with percent/number is not working · Issue #4201 · NativeScript/NativeScript · GitHub
Open Graph Title: backgroundPosition with percent/number is not working · Issue #4201 · NativeScript/NativeScript
X Title: backgroundPosition with percent/number is not working · Issue #4201 · NativeScript/NativeScript
Description: Let's say you have a background image, and you try to apply backgroundPosition through css. The following is working: background-position: center; However, neither of these is: background-position: 50%; background-position: 50; backgroun...
Open Graph Description: Let's say you have a background image, and you try to apply backgroundPosition through css. The following is working: background-position: center; However, neither of these is: background-position:...
X Description: Let's say you have a background image, and you try to apply backgroundPosition through css. The following is working: background-position: center; However, neither of these is: background-posit...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/4201
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"backgroundPosition with percent/number is not working","articleBody":"Let's say you have a background image, and you try to apply backgroundPosition through css. The following is working:\r\n```\r\nbackground-position: center;\r\n```\r\n\r\nHowever, neither of these is:\r\n```\r\nbackground-position: 50%;\r\nbackground-position: 50;\r\nbackground-position: 0.5;\r\n```\r\n\r\nI'm attaching a stripped version of [groceries](https://github.com/NativeScript/NativeScript/files/1003727/groceries.tar.gz). The `app/groceries/groceries.component.html` contains a single GridLayout with a backgroundImage and class - list-page. The list-page class is defined in `app.css`.\r\n\r\nRelated to https://github.com/NativeScript/nativescript-dev-webpack/issues/135\r\n\r\n\r\n\u003cbountysource-plugin\u003e\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/45237702-backgroundposition-with-percent-number-is-not-working?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin\u0026utm_content=tracker%2F12908224\u0026utm_medium=issues\u0026utm_source=github).\r\n\u003c/bountysource-plugin\u003e","author":{"url":"https://github.com/sis0k0","@type":"Person","name":"sis0k0"},"datePublished":"2017-05-16T08:55:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/4201/NativeScript/issues/4201"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fc6d89ce-6ba0-d847-e41d-33e4952000a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9C54:C5C69:E7B9C4:139EAD8:6973D3BC |
| html-safe-nonce | 98922b7c957c6e4ee1dfc0fb64600c7f4007576e086a7486a144796d6b37737e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QzU0OkM1QzY5OkU3QjlDNDoxMzlFQUQ4OjY5NzNEM0JDIiwidmlzaXRvcl9pZCI6Ijg3MzI2Njc2MjU3NTIzODA3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 30d4547bd5e5c8a0ff42fd7d82733092cff781613f632f3a9cfac65a10d5ebff |
| hovercard-subject-tag | issue:228959972 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/4201/issue_layout |
| twitter:image | https://opengraph.githubassets.com/16edb79df8709839dc3223d2fc354ccb807ae38226e13ad0b3aa1df1d3fa2075/NativeScript/NativeScript/issues/4201 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/16edb79df8709839dc3223d2fc354ccb807ae38226e13ad0b3aa1df1d3fa2075/NativeScript/NativeScript/issues/4201 |
| og:image:alt | Let's say you have a background image, and you try to apply backgroundPosition through css. The following is working: background-position: center; However, neither of these is: background-position:... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sis0k0 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4c466014c8820edcdcbef69f57f90d1c8041009ca459463b96b062ebca83c424 |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b4cd3a8af1483283fd4c6bcf6e24fd9fc8ab0e78 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width