Skip to content

Fix CSS validation errors and patch shell-quote CVE#112

Merged
nicped merged 3 commits into
mainfrom
fix/css-validation-errors-111
Jul 15, 2026
Merged

Fix CSS validation errors and patch shell-quote CVE#112
nicped merged 3 commits into
mainfrom
fix/css-validation-errors-111

Conversation

@nicped

@nicped nicped commented Jul 15, 2026

Copy link
Copy Markdown
Member

Summary

  • Fixes CSS Validation Errors in swiffy-slider.min.css - W3C CSS Validator Fails #111 — removes a redundant wrapping parenthesis in the padding-top: calc() ratio hack and splits the .slider-nav::after mask shorthand into mask-image/mask-size longhands, so the built CSS no longer emits values the W3C CSS Validator rejects (calc( 100% / (var(...)))) and a combined mask: url(...) 0 0/cover)
  • Bumps to v2.1.1 with a Changelog entry
  • Bumps concurrently devDependency from ^9.0.0 to ^9.2.4 to pull in patched shell-quote@1.9.0, resolving CVE-2026-9277 (critical) flagged by Dependabot; no Node engine bump required

Test plan

  • npm run build completes cleanly and dist/docs assets regenerated
  • Confirmed built .slider-nav:after rule no longer collapses into mask: url(...) 0 0/cover shorthand
  • Confirmed built padding-top no longer has the extra wrapping parenthesis
  • npm audit reports 0 vulnerabilities after the concurrently bump

nicped and others added 2 commits July 15, 2026 11:42
The var(--swiffy-slider-item-ratio) padding-top calc() had a redundant
wrapping parenthesis, and the .slider-nav::after mask shorthand combined
with mask-size: cover minified into a background-position/size form the
W3C CSS Validator rejects. Split into longhand mask-image/mask-size and
removed the extra parens.

Fixes #111

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
concurrently@9.0.0 pulled in shell-quote@1.8.3, flagged as critical
severity. concurrently@9.2.4 depends on shell-quote@1.9.0, resolving
the advisory while staying on Node >=18 (no major bump needed).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@nicped nicped self-assigned this Jul 15, 2026
@nicped
nicped merged commit e8365d3 into main Jul 15, 2026
1 check passed
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.

CSS Validation Errors in swiffy-slider.min.css - W3C CSS Validator Fails

1 participant