Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #30835
Closed
Open
Issue created May 14, 2020 by Administrator@rootContributor

escape-svg fails for unquoted URLs

Created by: jrdutton

When using the SCSS version of Bootstrap, I am experiencing problems when providing an unquoted URL for the $breadcrumb-divider variable.

This is because the escape-svg function expects the URL to be quoted. Therefore, it removes the first five url(' and last two characters '). However, in the case of an unquoted URL, this fails. My understanding is the unquoted URLs are valid SCSS for the url function.

File poc.scss.txt shows the escape-svg function and other helper functions taken from the Bootstrap SCSS. It also includes two other variations, my attempts at fixing the issue. poc.scss.txt

File poc.css shows the output when compiled. poc.css.txt .breadcrumb-item shows the CSS using the existing function. In the case of url(data, the data part is truncated to ata .breadcrumb-item2 and breadcrumb-item3 show the outputs with the adjusted function.

I am happy to create a pull request if agreed that this is an issue to be fixed.

Assignee
Assign to
Time tracking