Title: CSS calc() breaks when using 3+ variable fallbacks on Ivy/Angular 9 · Issue #16910 · angular/angular-cli · GitHub
Open Graph Title: CSS calc() breaks when using 3+ variable fallbacks on Ivy/Angular 9 · Issue #16910 · angular/angular-cli
X Title: CSS calc() breaks when using 3+ variable fallbacks on Ivy/Angular 9 · Issue #16910 · angular/angular-cli
Description: 🐞 Bug report Command new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.3 Description var(--x, var(--y, var(--z, ...
Open Graph Description: 🐞 Bug report Command new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.3...
X Description: 🐞 Bug report Command new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.3...
Opengraph URL: https://github.com/angular/angular-cli/issues/16910
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"CSS calc() breaks when using 3+ variable fallbacks on Ivy/Angular 9","articleBody":"# 🐞 Bug report\r\n\r\n### Command\r\n- [ ] new\r\n- [x] build\r\n- [ ] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n\r\n\r\n### Is this a regression?\r\nYes, the previous version in which this bug was not present was: 8.2.3\r\n\r\n\r\n### Description\r\n`var(--x, var(--y, var(--z, 0)))` breaks inside of the calc-function.\r\nWhereas `var(--x, var(--y, 0))` still seems to work.\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n1) Put following class selector in any component stylesheet.\r\n```css\r\n.some-rule-lg {\r\n --width-lg: 1px;\r\n --width-md: 2px;\r\n --width-sm: 3px;\r\n --offset-lg: 4px;\r\n --offset-md: 5px;\r\n --offset-sm: 6px;\r\n width: calc(var(--width-lg, var(--width-md, var(--width-sm, 0))) + var(--offset-lg, var(--offset-md, var(--offset-sm, 0))));\r\n}\r\n```\r\n\r\n2) Build using `ng build --aot --prod`\r\n\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre\u003e\u003ccode\u003eERROR in Parse error on line 1: \r\nvar(--width-lg, var(--width-md, var(--width-sm, 0))) + var(--...\r\n---------------------------------------------------^\r\nExpecting end of input, \"ADD\", \"SUB\", \"MUL\", \"DIV\", got unexpected \"RPAREN\"\u003c/code\u003e\u003c/pre\u003e\r\n\r\n\r\n## 🌍 Your Environment\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular CLI: 9.0.1\r\nNode: 10.15.3\r\nOS: win32 x64\r\n\r\nAngular: 9.0.0\r\n... animations, cdk, common, compiler, compiler-cli, core, forms\r\n... language-service, material, material-moment-adapter\r\n... platform-browser, platform-browser-dynamic, router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.1\r\n@angular-devkit/build-angular 0.900.1\r\n@angular-devkit/build-optimizer 0.900.1\r\n@angular-devkit/build-webpack 0.900.1\r\n@angular-devkit/core 9.0.1\r\n@angular-devkit/schematics 9.0.1\r\n@angular/cli 9.0.1\r\n@ngtools/webpack 9.0.1\r\n@schematics/angular 9.0.1\r\n@schematics/update 0.900.1\r\nrxjs 6.5.4\r\ntypescript 3.7.5\r\nwebpack 4.41.2\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n**Anything else relevant?**\r\nWe're using SCSS for our stylesheets.","author":{"url":"https://github.com/yutamago","@type":"Person","name":"yutamago"},"datePublished":"2020-02-10T11:19:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/16910/angular-cli/issues/16910"}
| 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:ecaf0c79-7ead-dca0-bf96-5bef22324e2e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA70:3FFD58:11C5FA:17AC5C:6A6168C7 |
| html-safe-nonce | 34c6495c49759a20dc0945ed5f9692a44347f5f03715b0045ef8cec20a4ed46f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTcwOjNGRkQ1ODoxMUM1RkE6MTdBQzVDOjZBNjE2OEM3IiwidmlzaXRvcl9pZCI6IjY5NjIyNjAzNzkzNzQyODI5NTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 34a360ed5d3813c5e9f6def806cf416b48e21245a8042aab16f082ca1c6bd514 |
| hovercard-subject-tag | issue:562494403 |
| 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-cli/16910/issue_layout |
| twitter:image | https://opengraph.githubassets.com/873516e052f008e733d73dd08c0a4564d6bbf49947ab2789b9d1d360c5441329/angular/angular-cli/issues/16910 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/873516e052f008e733d73dd08c0a4564d6bbf49947ab2789b9d1d360c5441329/angular/angular-cli/issues/16910 |
| og:image:alt | 🐞 Bug report Command new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes, the previous version in which this bug was not present was: 8.2.3... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yutamago |
| hostname | github.com |
| expected-hostname | github.com |
| None | a69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | 484cf265a1f970d5c7a5e7c37cb677d8010aa12f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width