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

How do you use viewport-units-buggyfill in the pseudo-element? #95

Open
airen opened this issue Feb 26, 2018 · 2 comments
Open

How do you use viewport-units-buggyfill in the pseudo-element? #95

airen opened this issue Feb 26, 2018 · 2 comments

Comments

@airen
Copy link

airen commented Feb 26, 2018

@rodneyrehm ,How do you use viewport-units-buggyfill in the pseudo-element? eg: sometimes, I use pseudo-element to make ICONS.

Input CSS

.icon-book::before {
      content: 'book';
      width: 2vw;
      height: 2vw;
}

Output CSS

.icon-book::before {
   content: 'viewport-units-buggyfill; width: 2vw;height: 2vw;`
}
@rodneyrehm
Copy link
Owner

Unfortunately that's not possible. The one time I needed to do something similar I added a wrapper element to to work around the issue.

@airen
Copy link
Author

airen commented Feb 26, 2018

Thx @rodneyrehm .

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

No branches or pull requests

2 participants