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

Handle Greater Selector Depth #1

Open
philipkimmey opened this issue Aug 6, 2012 · 0 comments
Open

Handle Greater Selector Depth #1

philipkimmey opened this issue Aug 6, 2012 · 0 comments
Labels

Comments

@philipkimmey
Copy link
Contributor

Currently the test_immediate_child_with_additional_child_selector fails because the selector tests are run against the MATCHED element, rather than the intermediate layer.

The CSS used in this test is:

.wrapper > .header input { ... }

Although it will initially match on input, once it sees the > operator it will check for an immediate parent of input with the wrapper class, instead of a parent of input with class header that has an immediate parent wrapper.

Passing the failing test should be sufficient to prove this is resolved.

FAIL: test_immediate_child_with_additional_child_selector (django_inlinecss.tests.pynliner_tests.ComplexSelectors)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/philip/workspace/django-inlinecss/django_inlinecss/tests/pynliner_tests.py", line 468, in test_immediate_child_with_additional_child_selector
    self.assertEqual(output, expected)
AssertionError: u'<div class="wrapper"><div class="header"><input type="text" /></div></div>' != u'<div class="wrapper"><div class="header"><input type="text" style="color: red" [truncated]...
- <div class="wrapper"><div class="header"><input type="text" /></div></div>
+ <div class="wrapper"><div class="header"><input type="text" style="color: red" /></div></div>
?                                                            +++++++++++++++++++
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