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

False positive for viewport-units with base64 encoded data #17

Closed
asavin opened this issue Jun 5, 2015 · 3 comments
Closed

False positive for viewport-units with base64 encoded data #17

asavin opened this issue Jun 5, 2015 · 3 comments
Milestone

Comments

@asavin
Copy link

asavin commented Jun 5, 2015

Getting false positives with base64 encoded PNG for background image:

Viewport units: vw, vh, vmin, vmax not supported by: IE (9,10,11), iOS Safari (6.0-6.1,7.0-7.1), Android Browser (3,4,2.3,4.1,4.2-4.3), IE Mobile (10,11)

Actual CSS:

.icon {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAtCAYAAAA6GuKaAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEwAACxMBAJqcGAAABbNJREFUWIXV2GlslEUcx/Hvc+1uu73Epsp9VFoQAokpCkaIIlAOEwIFSjlsINTaSiBVCSQajJAoKjQKC8gtEEQKCYLgwSWHFqGUy0AEJVIFCXah7e4C3d3n8MW2TbfnU9ke/JN98WzmmXwy+c08MyPQTFXStX83TdOPighdQ9WnjlEkSeKLcqg6rF4lXft3U3XjuITQud5GFgsYBvj9pvr02iylJ1PHbCmKjSkVQwWtrCqwQb1gZcRLxJw9TPSxPYidOjTaZwV4RVFsTG5OTk5o0fWCBSHwA6SnEwlf+BaeaVkIdjuROzc2CK8JBpCaHQyEL1qA1DsBteAcltHDEWKiMFxujGInYpeOWKem4Nu9Hx6UNwoGCEmmG4uE//BxAGzZM/Hu2I1aeJ7IbWsoHTCcyF49ebB+K8adElNggIeOh5kM+4/lg81G2LzZ2NInYzjvIkSEE3P6AOrZi/gPHTcNhoccaTNgeVAS1ikpqGcu4MmeR8SqTwBwJaciPBGLml/QJDA8RKZNrRKDB2J3LEG7dAWt4Bza5auohRcIX7QAvaQE3869tcD5E0Y6XAk9cr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+2JrgQFE0A3j3n086bPRrl4jbMFcvKu/aBTcUpOurqpaPSrh6qlCrJnpyIOS6nyhElzcs3urgCGArtosVI34xUsoLw+p1bg6OCMj425LQquX4OzQ1yeKohL0p82K4fUFb34U2XUyJXmlM7HH0tYEQz1XCEa5N+i5LYEBRBCNhhq0NTA0crBti2CoMRGrV1sFQz2ZDoBHrXQmdmtzYABRrDHSbR0MFV/EygefIrvbOhiqTcQKsKOtgwFERIxHCQwgG3DzZMqoXY8KGAhcH6xbt65dazuaUv8BdpCJlwOuTeIAAAAASUVORK5CYII=');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 45px 45px;
    height: 45px;
    width: 45px;
}
@anandthakker
Copy link
Owner

@asavin Thanks for the report, and sorry for the delayed reponse!

@anandthakker
Copy link
Owner

@asavin Hmm, I'm not seeing that warning come up for the CSS you included, although if I stick a stray vh somewhere in the b64, I do indeed see the false positive.

anandthakker pushed a commit that referenced this issue Jun 21, 2015
@anandthakker
Copy link
Owner

Fixed in 1.0.2

@pkuczynski pkuczynski added this to the Before 4.1.0 milestone Sep 27, 2018
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

3 participants