Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does .caret have a "content" attribute? #10694

Closed
ssafejava opened this issue Sep 18, 2013 · 0 comments
Closed

Why does .caret have a "content" attribute? #10694

ssafejava opened this issue Sep 18, 2013 · 0 comments
Labels
Milestone

Comments

@ssafejava
Copy link

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.

@mdo mdo closed this as completed in ef636bd Sep 20, 2013
stempler pushed a commit to stempler/bootstrap that referenced this issue Apr 11, 2014
stempler pushed a commit to stempler/bootstrap that referenced this issue Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant