diff --git a/change/@microsoft-fast-element-5444-csp-style-nonce.json b/change/@microsoft-fast-element-5444-csp-style-nonce.json new file mode 100644 index 00000000000..712f9810540 --- /dev/null +++ b/change/@microsoft-fast-element-5444-csp-style-nonce.json @@ -0,0 +1,7 @@ +{ + "type": "minor", + "comment": "Add ElementStyles.styleNonce (aliased as FASTElement.styleNonce) to apply a Content Security Policy nonce to injected style elements.", + "packageName": "@microsoft/fast-element", + "email": "144495202+AKnassa@users.noreply.github.com", + "dependentChangeType": "none" +} diff --git a/packages/fast-element/DESIGN.md b/packages/fast-element/DESIGN.md index 5e6a8a8c6fb..cefc11a8e6c 100644 --- a/packages/fast-element/DESIGN.md +++ b/packages/fast-element/DESIGN.md @@ -390,6 +390,15 @@ CSS during template composition, but runtime CSS bindings and style-attached through `ElementController.addStyles()` / `removeStyles()`; `ElementStyles` itself is a static container. +When styles are applied through a style-element strategy, each created +`