Title: Strange bug in alpha 48 with svg graphics · Issue #5654 · angular/angular · GitHub
Open Graph Title: Strange bug in alpha 48 with svg graphics · Issue #5654 · angular/angular
X Title: Strange bug in alpha 48 with svg graphics · Issue #5654 · angular/angular
Description: This is strange and took me a while to come up with a simple test case, this worked in alpha 46 and no longer works in alpha 48. If you use the html below in straight browser and in a component with alpha 46, you end up with a 40px squar...
Open Graph Description: This is strange and took me a while to come up with a simple test case, this worked in alpha 46 and no longer works in alpha 48. If you use the html below in straight browser and in a component wit...
X Description: This is strange and took me a while to come up with a simple test case, this worked in alpha 46 and no longer works in alpha 48. If you use the html below in straight browser and in a component wit...
Opengraph URL: https://github.com/angular/angular/issues/5654
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Strange bug in alpha 48 with svg graphics","articleBody":"This is strange and took me a while to come up with a simple test case, this worked in alpha 46 and no longer works in alpha 48. If you use the html below in straight browser and in a component with alpha 46, you end up with a 40px square. However, in alpha 48 you end up with a 200px square. \n\n```\n\u003cdiv style=\"width: 40px; height: 40px\">\n \u003csvg viewbox=\"0 0 200 200\">\n \u003crect width=\"200\" height=\"200\"/>\n \u003c/svg>\n\u003c/div>\n```\n\nFor others who might be struggling with this the way to fix this in the meantime in alpha 48 is to insert a scale transform like this\n\n```\n\u003cdiv style=\"width: 40px; height: 40px\">\n \u003cg transform=\"scale(0.2)\">\n \u003csvg viewbox=\"0 0 200 200\">\n \u003crect width=\"200\" height=\"200\"/>\n \u003c/svg>\n \u003c/g> \n\u003c/div>\n```\n\nSomething in alpha 48 is producing something different then the straight browser behavior and alpha 46 some I'm assuming that's the culprit and not alpha 46. However, by a quick check of the w3 specs it might seem that the correct literal rendering might be alpha 48 and browsers are automagically doing a scaling in the background. Nonetheless, inconsistent behavior is a bigger problem so I think alpha 48 is the one that should be fixed.\n","author":{"url":"https://github.com/user414","@type":"Person","name":"user414"},"datePublished":"2015-12-06T14:15:48Z","url":"https://github.com/angular/angular/issues/5654"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:df86ff07-5cbe-88ab-b10b-19a767e2f91d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5C0:1F927B:7B659:A4EA7:6B018060 |
| html-safe-nonce | 4d3358aebe0551cc429f3857208bd4111aa6b9ee1311efc3923791734f1e80ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUMwOjFGOTI3Qjo3QjY1OTpBNEVBNzo2QjAxODA2MCIsInZpc2l0b3JfaWQiOiI2MzY5MzgxODkxMjU0MDkxODcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7eca059ec800f7016dfe9e6f169e62f605e3b86c4c7b693d3445cacb438daec6 |
| hovercard-subject-tag | issue:120636971 |
| 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/angular/angular/5654/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5bd2740bdaef3da1e7a50fd5c9bcb2dcf49b9b46bae0364fc878760a376c45b/angular/angular/issues/5654 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5bd2740bdaef3da1e7a50fd5c9bcb2dcf49b9b46bae0364fc878760a376c45b/angular/angular/issues/5654 |
| og:image:alt | This is strange and took me a while to come up with a simple test case, this worked in alpha 46 and no longer works in alpha 48. If you use the html below in straight browser and in a component wit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | user414 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width