From 6e1e77b53991aead6bcf1d29d58eaeea7615a689 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 27 Oct 2015 12:01:07 -0700 Subject: [PATCH] Add docs regarding .progress, inline style attrs, and CSP; closes #17785 [skip sauce] --- docs/_includes/components/progress-bars.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/_includes/components/progress-bars.html b/docs/_includes/components/progress-bars.html index e8ea1beed4..13b76539ac 100644 --- a/docs/_includes/components/progress-bars.html +++ b/docs/_includes/components/progress-bars.html @@ -8,6 +8,11 @@

Progress bars use CSS3 transitions and animations to achieve some of their effects. These features are not supported in Internet Explorer 9 and below or older versions of Firefox. Opera 12 does not support animations.

+
+

Content Security Policy (CSP) compatibility

+

If your website has a Content Security Policy (CSP) which doesn't allow style-src 'unsafe-inline', then you won't be able to use inline style attributes to set progress bar widths as shown in our examples below. Alternative methods for setting the widths that are compatible with strict CSPs include using a little custom JavaScript (that sets element.style.width) or using custom CSS classes.

+
+

Basic example

Default progress bar.

-- 2.47.2