René's URL Explorer Experiment


Title: Using more complex calculations in CSS calc expressions will be incorrect in production builds · Issue #17890 · angular/angular-cli · GitHub

Open Graph Title: Using more complex calculations in CSS calc expressions will be incorrect in production builds · Issue #17890 · angular/angular-cli

X Title: Using more complex calculations in CSS calc expressions will be incorrect in production builds · Issue #17890 · angular/angular-cli

Description: 🐞 bug report Affected Package "@angular-devkit/build-angular": "~0.901.7", "@angular/cli": "~9.1.7", "@angular/compiler-cli": "~9.1.9", Is this a regression? I don't think so... Description When using more complex calculations in CSS cal...

Open Graph Description: 🐞 bug report Affected Package "@angular-devkit/build-angular": "~0.901.7", "@angular/cli": "~9.1.7", "@angular/compiler-cli": "~9.1.9", Is this a regression? I don't think so... Description When us...

X Description: 🐞 bug report Affected Package "@angular-devkit/build-angular": "~0.901.7", "@angular/cli": "~9.1.7", "@angular/compiler-cli": "~9.1.9", I...

Opengraph URL: https://github.com/angular/angular-cli/issues/17890

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Using more complex calculations in CSS calc expressions will be incorrect in production builds","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\n    \"@angular-devkit/build-angular\": \"~0.901.7\",\r\n    \"@angular/cli\": \"~9.1.7\",\r\n    \"@angular/compiler-cli\": \"~9.1.9\",\r\n\r\n\r\n### Is this a regression?\r\nI don't think so...\r\n\r\n### Description\r\nWhen using more complex calculations in CSS `calc` expressions, production builds will be incorrect. Have look at the sample repo:\r\n\r\nI have added the following to `styles.css`:\r\n\r\n```css\r\n:root {\r\n    --width-a: 10em;\r\n}\r\n.box {\r\n    background-color: #ccc;\r\n    width: calc(var(--width-a)/2 + var(--width-a)/2);\r\n    height: calc(var(--width-a)/2 + var(--width-a)/2);\r\n}\r\n```\r\nwhich gets compiled to the following in production builds (`ng build --prod`):\r\n\r\n```css\r\n.box {\r\n    background-color: #ccc;\r\n    width: calc(var(--width-a) + var(--width-a));\r\n    height: calc(var(--width-a) + var(--width-a));\r\n}\r\n```\r\n\r\nI think the problem comes from: https://github.com/postcss/postcss-calc/issues/107. But not sure if this plugin is used under the hood.\r\nUnfortunately we cannot disable specific PostCSS plugins: https://github.com/angular/angular-cli/issues/8427\r\n\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\nSee: https://github.com/loxy/angular-cs-calc-bug\r\n\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre\u003e\u003ccode\u003e\r\nAngular CLI: 9.1.7\r\nNode: 12.12.0\r\nOS: win32 x64\r\n\r\nAngular: 9.1.9\r\n... animations, common, compiler, compiler-cli, core, forms\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.901.7\r\n@angular-devkit/build-angular     0.901.7\r\n@angular-devkit/build-optimizer   0.901.7\r\n@angular-devkit/build-webpack     0.901.7\r\n@angular-devkit/core              9.1.7\r\n@angular-devkit/schematics        9.1.7\r\n@angular/cli                      9.1.7\r\n@ngtools/webpack                  9.1.7\r\n@schematics/angular               9.1.7\r\n@schematics/update                0.901.7\r\nrxjs                              6.5.5\r\ntypescript                        3.8.3\r\nwebpack                           4.42.0\r\n\u003c/code\u003e\u003c/pre\u003e\r\n\r\n**Anything else relevant?**\r\nNo\r\n","author":{"url":"https://github.com/loxy","@type":"Person","name":"loxy"},"datePublished":"2020-06-09T09:35:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/17890/angular-cli/issues/17890"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:75e5e305-30cd-d43d-85f5-a2eede12c45b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE77A:3D075F:1C700E:26167D:6A61302B
html-safe-nonce65ef93152a1fef5f144058a4b2d3a76b60801f6c16414fdc4874a0689ffddc6f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzdBOjNEMDc1RjoxQzcwMEU6MjYxNjdEOjZBNjEzMDJCIiwidmlzaXRvcl9pZCI6IjQyOTE1ODE3MDgyMDkzMDM1OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaca9a90a336f8f4e1819882f0880ccf329f754a959b6102180350b100c6f98aeaf
hovercard-subject-tagissue:635327318
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/17890/issue_layout
twitter:imagehttps://opengraph.githubassets.com/565b3ca8c056e13225c98fc148cc051c23912a35626c75ee7bf841fdd9128fe5/angular/angular-cli/issues/17890
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/565b3ca8c056e13225c98fc148cc051c23912a35626c75ee7bf841fdd9128fe5/angular/angular-cli/issues/17890
og:image:alt🐞 bug report Affected Package "@angular-devkit/build-angular": "~0.901.7", "@angular/cli": "~9.1.7", "@angular/compiler-cli": "~9.1.9", Is this a regression? I don't think so... Description When us...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameloxy
hostnamegithub.com
expected-hostnamegithub.com
Nonec5eca2d5d770261725d2d44a57879a5bd9643e5b84204081dc36933ab40e63a2
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedac3a1c903b48538720e0bc780047237dd89fd4c
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/17890#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F17890
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F17890
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/17890
Reloadhttps://github.com/angular/angular-cli/issues/17890
Reloadhttps://github.com/angular/angular-cli/issues/17890
Please reload this pagehttps://github.com/angular/angular-cli/issues/17890
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 271 https://github.com/angular/angular-cli/issues
Pull requests 35 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security and quality 5 https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security and quality https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
#17891https://github.com/angular/angular-cli/pull/17891
Using more complex calculations in CSS calc expressions will be incorrect in production buildshttps://github.com/angular/angular-cli/issues/17890#top
#17891https://github.com/angular/angular-cli/pull/17891
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
devkit/build-angular:browserhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Abrowser%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular-cli/milestone/12
https://github.com/loxy
loxyhttps://github.com/loxy
on Jun 9, 2020https://github.com/angular/angular-cli/issues/17890#issue-635327318
postcss/postcss-calc#107https://github.com/postcss/postcss-calc/issues/107
#8427https://github.com/angular/angular-cli/issues/8427
https://github.com/loxy/angular-cs-calc-bughttps://github.com/loxy/angular-cs-calc-bug
area: @angular-devkit/build-angularhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular-devkit%2Fbuild-angular%22
devkit/build-angular:browserhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22devkit%2Fbuild-angular%3Abrowser%22
freq1: lowOnly reported by a handful of users who observe it rarelyhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity3: brokenhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
type: bug/fixhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular-cli/milestone/12
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.