Title: NS 6.4 HtmlView inconsistent results on Android and iOS · Issue #8368 · NativeScript/NativeScript · GitHub
Open Graph Title: NS 6.4 HtmlView inconsistent results on Android and iOS · Issue #8368 · NativeScript/NativeScript
X Title: NS 6.4 HtmlView inconsistent results on Android and iOS · Issue #8368 · NativeScript/NativeScript
Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.4.0 Cross-platform modules: 6.4.1 Android...
Open Graph Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.4...
X Description: Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.4...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/8368
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NS 6.4 HtmlView inconsistent results on Android and iOS","articleBody":"**Environment**\r\nProvide version numbers for the following components (information can be retrieved by running `tns info` in your project folder or by inspecting the `package.json` of the project):\r\n - CLI: 6.4.0\r\n - Cross-platform modules: 6.4.1\r\n - Android Runtime: 6.4.1\r\n - iOS Runtime: 6.4.0\r\n - Plugin(s): -\r\n\r\n**Describe the bug**\r\nAccording to According to https://github.com/NativeScript/NativeScript/pull/8207, the HtmlView should support new properties like color, link-color and font-size.\r\nWe want to try out the new features added to the HtmlView, so we try to style it in CSS like this:\r\n\r\n```\r\n.html-view {\r\n font-size: 16;\r\n color: #808080;\r\n link-color: #FF44FF;\r\n}\r\n```\r\n\r\nWhile it works correctly on Android, it only works partially on iOS 12 (correct font-size and correct darkgrey text-color but it shows just the default blue link-color) and it does not work at all on iOS 13, as all the text is just black (only the font-size is set correctly). See the result in the screenshot below:\r\n\r\n\u003cimg width=\"1485\" alt=\"Bildschirmfoto 2020-02-22 um 15 30 36\" src=\"https://user-images.githubusercontent.com/6443021/75094271-f5be6e80-5589-11ea-9f32-e057910eb780.png\"\u003e\r\n\r\n\r\nWhen trying to set those properties in XML like this:\r\n\u003cHtmlView html=\"{{ myHtml }}\" color=\"#808080\" linkColor=\"#FF44FF\" fontSize=\"16\"/\u003e\r\n\r\nOn Android and iOS 12, the color is set correctly to the darkgrey tone, but the font-size and the link-color are not set correctly. On iOS 13 none of the properties are set correctly. The text and the link is black and it has the default font-size.\r\n\r\n\u003cimg width=\"1491\" alt=\"Bildschirmfoto 2020-02-22 um 15 25 33\" src=\"https://user-images.githubusercontent.com/6443021/75094403-f572a300-558a-11ea-9cd8-fb49e4cb491b.png\"\u003e\r\n\r\n\r\n**To Reproduce**\r\nJust open the sample app provided below.\r\n\r\n\r\n**Expected behavior**\r\nWhen setting those prperties in CSS or XML, they should be applied correctly to the HtmlView component.\r\n\r\n\r\n**Sample project**\r\n[HtmlViewIssue.zip](https://github.com/NativeScript/NativeScript/files/4239478/HtmlViewIssue.zip)\r\n\r\n","author":{"url":"https://github.com/felixkrautschuk","@type":"Person","name":"felixkrautschuk"},"datePublished":"2020-02-22T15:03:40.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/8368/NativeScript/issues/8368"}
| 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:11c48dc4-446e-d06a-e77e-1ee91851515b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9AD2:2A7CC:36033E0:474B8B9:69745511 |
| html-safe-nonce | b2e0ed4d2bbf00a00970a73d4a00fe2715f520bd913da71e957cafc4014e381a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QUQyOjJBN0NDOjM2MDMzRTA6NDc0QjhCOTo2OTc0NTUxMSIsInZpc2l0b3JfaWQiOiI1NDIxMDY5Mzk0NDkyMjgyMTI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6f7fb6500be3111a2ae5bd73f28497c20022342705a2151fc0bc61fd7817d0f5 |
| hovercard-subject-tag | issue:569346444 |
| 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/8368/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d26eca6f6ded450dba86b9b5be26188c8ae0176a30f666cf0ee64afd6eb66652/NativeScript/NativeScript/issues/8368 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d26eca6f6ded450dba86b9b5be26188c8ae0176a30f666cf0ee64afd6eb66652/NativeScript/NativeScript/issues/8368 |
| og:image:alt | Environment Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project): CLI: 6.4... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | felixkrautschuk |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| 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 | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width