fix: use CSS custom property for timing bar width to bypass CSP blocking
Inline style= attributes containing property:value pairs are blocked by strict style-src-attr CSP. CSS custom properties (--foo:value) set via style= are treated as data not styles and are not subject to this restriction. The width is now resolved in the stylesheet via var(--bar-w, 100%) so CSP cannot interfere.
This commit is contained in:
@@ -952,6 +952,7 @@ body {
|
||||
|
||||
.timing-bar {
|
||||
height: 100%;
|
||||
width: var(--bar-w, 100%);
|
||||
background: var(--accent);
|
||||
border-radius: 4px;
|
||||
min-width: 2px;
|
||||
|
||||
Reference in New Issue
Block a user