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

AssertionError with @-ms-viewport inside @media #17

Open
hemebond opened this issue Aug 11, 2013 · 3 comments
Open

AssertionError with @-ms-viewport inside @media #17

hemebond opened this issue Aug 11, 2013 · 3 comments

Comments

@hemebond
Copy link

If you append the following code to tests/four.css

@media (max-width: 900px) {
  @-ms-viewport {
    width: 320px;
  }
}

it will cause an AssertionError exception to be raised. Seems the viewport selector gets replaced with a temp_key but the assertion for the @media selector doesn't know that.

@peterbe
Copy link
Owner

peterbe commented Aug 23, 2013

Sorry for late reply. Been busy.

If you really need this you can attempt to write a unit test that demonstrates the bug.

sullerandras added a commit to sullerandras/mincss that referenced this issue Aug 31, 2014
@jithurjacob
Copy link

TROUBLEMAKER
u'a[href^="javascript'
TROUBLEMAKER
u'a[href^="javascript'
Traceback (most recent call last):
File "test.py", line 38, in
run()
File "test.py", line 12, in run
p.process(URL)
File "C:\Python\lib\site-packages\mincss\processor.py", line 144, in process
processed = self._process_content(content, self._bodies)
File "C:\Python\lib\site-packages\mincss\processor.py", line 372, in _process_content
assert old in content, old
AssertionError: @media (min-width: 768px) {
.cx {
font-size: 21px;
}
}

@peterbe
Copy link
Owner

peterbe commented Jan 12, 2016

I have to be honest. I'm struggling to find time to work on this. Would you like to attempt it yourself?

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