Title: [BUG]: `word caps` skips the first word after `
`, and mock text decorations depend on the Chrome version · Issue #8120 · plotly/plotly.js · GitHub
Open Graph Title: [BUG]: `word caps` skips the first word after `
`, and mock text decorations depend on the Chrome version · Issue #8120 · plotly/plotly.js
X Title: [BUG]: `word caps` skips the first word after `
`, and mock text decorations depend on the Chrome version · Issue #8120 · plotly/plotly.js
Description: Description textcase: "word caps" doesn't capitalize the first word after a
when the line before ends with a letter. All lines share one
two" as the word "settwo". Screensh...
Open Graph Description: Description textcase: "word caps" doesn't capitalize the first word after a
when the line before ends with a letter. All lines share one
X Description: Description textcase: "word caps" doesn't capitalize the first word after a <br> when the line before ends with a letter. All lines share one <text> element, so text-trans...
Opengraph URL: https://github.com/plotly/plotly.js/issues/8120
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BUG]: `word caps` skips the first word after `\u003cbr>`, and mock text decorations depend on the Chrome version","articleBody":"### Description\n\n`textcase: \"word caps\"` doesn't capitalize the first word after a `\u003cbr>` when the line before ends with a letter. All lines share one `\u003ctext>` element, so `text-transform: capitalize` reads `\"set\u003cbr>two\"` as the word `\"settwo\"`.\n\n### Screenshots\n\n\u003cimg width=\"980\" height=\"450\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/1f8b5cae-c63b-4931-97b6-1f7fd0449144\" />\n\n### Steps to reproduce\n\n- Open Plotly devtools and paste the following into the browser devtools console:\n```js\nPlotly.newPlot(gd, [{ y: [1, 2] }], {\n font: { textcase: 'word caps' },\n shapes: [{ type: 'line', x0: 0, x1: 1, y0: 1, y1: 2, label: { text: 'not set\u003cbr>two lines' } }]\n});\n```\n- Note that the second line isn't capitalized\n\n### Notes\n\n- Treemap and icicle slices without text draw a `' '` placeholder with the trace font. With `lineposition`, Chrome 154 draws a stray underline dash under that space.\n- Chrome 155 skips decorations under spaces at the start or end of a line. Thus `geo_africa-insets`, `text_on_shapes_basic`, and `treemap_multi-line_headers` render differently in Chrome 154 and Chrome 155.\n- GitHub runner images recently started using the newer version of Chrome, but not all of them so we're seeing intermittent [CI failures](https://github.com/plotly/plotly.js/actions/runs/38584456085/job/115924447561#step:5:1327)\n- For now, I'm going to pin Chrome. Once the version rolls out across all runners, we'll need to address this issue.","author":{"url":"https://github.com/camdecoster","@type":"Person","name":"camdecoster"},"datePublished":"2026-10-14T21:54:22Z","url":"https://github.com/plotly/plotly.js/issues/8120"}
| 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:0011b2e9-73d5-5708-2f37-bf3f2bbfb299 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8AEA:38EE04:873142:B2DC84:6B01AFDD |
| html-safe-nonce | e5ede92e43ba06da0c8d1781b2ff429df04f053aae812d3e9089e93a681d2d4c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUVBOjM4RUUwNDo4NzMxNDI6QjJEQzg0OjZCMDFBRkREIiwidmlzaXRvcl9pZCI6IjM2OTY5ODAxNTY1MTkzOTUyOTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ba119d07d8d7a1c2ba4e94469018f8f5d377fe7aa2438c957ae63c4918e56b29 |
| hovercard-subject-tag | issue:5856320215 |
| 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/plotly/plotly.js/8120/issue_layout |
| twitter:image | https://opengraph.githubassets.com/68fba7ca014f161c404d650c4a6500cec81cac11179224e834b1479d624e24de/plotly/plotly.js/issues/8120 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/68fba7ca014f161c404d650c4a6500cec81cac11179224e834b1479d624e24de/plotly/plotly.js/issues/8120 |
| og:image:alt | Description textcase: "word caps" doesn't capitalize the first word after a when the line before ends with a letter. All lines share one |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | camdecoster |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.js git https://github.com/plotly/plotly.js.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 45646037 |
| octolytics-dimension-repository_nwo | plotly/plotly.js |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45646037 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.js |
| 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