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
  • #10694
Closed
Open
Issue created Sep 18, 2013 by Administrator@rootContributor

Why does `.caret` have a "content" attribute?

Created by: ssafejava

dropdowns.less#L19 has an attribute, content: "" on .caret.

In the CSS 2.1 spec, content is only used on pseudo elements. In the CSS3 Content spec, it's used in a few places on non-pseudo elements for the purposes of quoting, etc.

It doesn't seem to have any use here, doesn't affect visible styles, and causes problems with projects like html2canvas. Setting content on a non-pseudo element bleeds into calls to window.getComputedStyle(el, ":before") (and :after), leading the script to believe a pseudo element exists where it actually does not.

It would make sense to remove it.

Assignee
Assign to
Time tracking