Skip to content

fix(*): resolving csp violations by using $.css#2295

Merged
ChronosSF merged 2 commits into
masterfrom
sstoychev/use-css-instead-of-class
May 28, 2026
Merged

fix(*): resolving csp violations by using $.css#2295
ChronosSF merged 2 commits into
masterfrom
sstoychev/use-css-instead-of-class

Conversation

@ChronosSF

Copy link
Copy Markdown
Member

Closes #2293

Additional information (check all that apply):

  • Bug fix
  • New functionality
  • Documentation
  • Demos
  • CI/CD

Checklist:

  • All relevant tags have been applied to this PR
  • This PR includes unit tests covering all the new code
  • This PR includes API docs for newly added methods/properties
  • This PR includes general feature table updates in the root README.MD
  • This PR contains breaking changes
  • This PR includes behavioral changes and the feature specification has been updated with them

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces inline style attributes on dynamically-created measurement <div> elements with jQuery .css() calls in the two scrollbar measurement helpers, eliminating CSP style-src 'unsafe-inline' violations.

Changes:

  • getScrollWidth now creates an empty <div> and applies sizing/positioning via .css().
  • getScrollHeight mirrors the same change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ChronosSF ChronosSF merged commit 64b4f4f into master May 28, 2026
3 of 7 checks passed
@ChronosSF ChronosSF deleted the sstoychev/use-css-instead-of-class branch May 28, 2026 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants