This blank StackBlitz demo can be used to create a reproduction that demonstrates your issue.
Demo URL (required)*: https://github.com/angular/material/pull/11390/files#diff-b71bb3e10759daf665e48e9bc558dc99R1324
HEAD:npm install http://github.com/angular/bower-material#masterunsafe-inline for style-src.Support existing apps using a CSP for security.
This was introduced in PR https://github.com/angular/material/pull/11390.
Related Chrome bug that can make the error a bit hard to understand:
https://bugs.chromium.org/p/chromium/issues/detail?id=546106
Could we introduce a .md-panel-inner-wrapper-initial-offset class, which has the initial offset, is assigned to the node in the template and then remove that instead of adjusting the style?
That sounds reasonable to me. Though we probably want to give it a more private looking name like ._md-panel-inner-wrapper-initial-offset.
In fact, it looks like we already have this class
https://github.com/angular/material/blob/269b68e8540062e2a0e195edb54a75903b17fdd0/src/components/panel/panel.scss#L13-L15
And it's used very close to the code in question (in the child)
https://github.com/angular/material/blob/269b68e8540062e2a0e195edb54a75903b17fdd0/src/components/panel/panel.js#L1324-L1325
And removed in a very similar way
https://github.com/angular/material/blob/269b68e8540062e2a0e195edb54a75903b17fdd0/src/components/panel/panel.js#L1952-L1957
I was able to remove these new inline styles, but I wasn't able to verify in a separate app that this solves the issue because I wasn't able to reproduce the problem (i.e. I got the same CSP violations with 1.1.22 as with v1.1.22-master-1bd1a97 and they were only related to not having set a nonce for theming).