Title: Check for actual MathML rendering · Issue #511 · WebPlatformTest/HTML5test · GitHub
Open Graph Title: Check for actual MathML rendering · Issue #511 · WebPlatformTest/HTML5test
X Title: Check for actual MathML rendering · Issue #511 · WebPlatformTest/HTML5test
Description: The HTML5 test checks that the browser correctly parses inline SVG and MathML, but does not actually verify that any attempt at actually rendering the content is made. Even if this is clearly annotated on the test, it would be appropriat...
Open Graph Description: The HTML5 test checks that the browser correctly parses inline SVG and MathML, but does not actually verify that any attempt at actually rendering the content is made. Even if this is clearly annot...
X Description: The HTML5 test checks that the browser correctly parses inline SVG and MathML, but does not actually verify that any attempt at actually rendering the content is made. Even if this is clearly annot...
Opengraph URL: https://github.com/WebPlatformTest/HTML5test/issues/511
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Check for actual MathML rendering","articleBody":"The HTML5 test checks that the browser correctly parses inline SVG and MathML, but does not actually verify that any attempt at actually rendering the content is made. Even if this is clearly annotated on the test, it would be appropriate to check that in addition to just parsing the tags, the user agent actually makes at least an effort at rendering.\r\n\r\nFor MathML, something like this can be used:\r\n\r\n```javascript\r\nfunction hasMathMLSupport() {\r\n var div = document.createElement(\"div\"), box;\r\n div.innerHTML = \"\u003cmath\u003e\u003cmspace height='23px' width='77px'/\u003e\u003c/math\u003e\";\r\n document.body.appendChild(div);\r\n box = div.firstChild.firstChild.getBoundingClientRect();\r\n document.body.removeChild(div);\r\n var has = Math.abs(box.height - 23) \u003c= 1 \u0026\u0026 Math.abs(box.width - 77) \u003c= 1;\r\n return has;\r\n}\r\n```\r\n\r\n(adapted from [here](https://github.com/fred-wang/mathml.css/blob/master/mspace.js).)\r\n","author":{"url":"https://github.com/Oblomov","@type":"Person","name":"Oblomov"},"datePublished":"2017-08-11T16:41:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/511/HTML5test/issues/511"}
| 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:a9a06534-2c61-a659-cc0c-41f4b57a2a60 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF7E:3E6A40:8C5953:C727B4:6978C0F5 |
| html-safe-nonce | b5189042bb9301a80a68b1a74f6b5cb576485c28fde62b32d2b1934cfb2d5322 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjdFOjNFNkE0MDo4QzU5NTM6QzcyN0I0OjY5NzhDMEY1IiwidmlzaXRvcl9pZCI6IjYzODY5MjgwMDUxNTg1ODQ1NjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a712ae364174418cc084412005d3cdd0fbc825299a0a79d61a320a5e0aad8da9 |
| hovercard-subject-tag | issue:249688474 |
| 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/WebPlatformTest/HTML5test/511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4dc12ac306b76f89bb27d2d523635b808b7a0d52dd866828fc76f78d2eed8a1f/WebPlatformTest/HTML5test/issues/511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4dc12ac306b76f89bb27d2d523635b808b7a0d52dd866828fc76f78d2eed8a1f/WebPlatformTest/HTML5test/issues/511 |
| og:image:alt | The HTML5 test checks that the browser correctly parses inline SVG and MathML, but does not actually verify that any attempt at actually rendering the content is made. Even if this is clearly annot... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Oblomov |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2981c597c945c1d90ac6fa355ce7929b2f413dfe7872ca5c435ee53a24a1de50 |
| turbo-cache-control | no-preview |
| go-import | github.com/WebPlatformTest/HTML5test git https://github.com/WebPlatformTest/HTML5test.git |
| octolytics-dimension-user_id | 20091281 |
| octolytics-dimension-user_login | WebPlatformTest |
| octolytics-dimension-repository_id | 605586 |
| octolytics-dimension-repository_nwo | WebPlatformTest/HTML5test |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 605586 |
| octolytics-dimension-repository_network_root_nwo | WebPlatformTest/HTML5test |
| 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 | 9520342ca7ead2f1a011aa96eaff82fc054a4970 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width