**Issue:** Using pseudo classes in programmatic query using Node.lookupAll() or Node.lookup() gives unexpected results.
**Cause:** There is no check for checking the psuedo states matching in the applies() method of SimpleSelector.java. **Fix:** Included the check for the states for matching. ------------- Commit messages: - 8185831: Psuedo selectors fix in lookup method Changes: https://git.openjdk.org/jfx/pull/1245/files Webrev: https://webrevs.openjdk.org/?repo=jfx&pr=1245&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8185831 Stats: 54 lines in 2 files changed: 40 ins; 0 del; 14 mod Patch: https://git.openjdk.org/jfx/pull/1245.diff Fetch: git fetch https://git.openjdk.org/jfx.git pull/1245/head:pull/1245 PR: https://git.openjdk.org/jfx/pull/1245