diff --git a/appveyor.yml b/appveyor.yml
index e229a62..818a27b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -24,6 +24,7 @@ init:
 
 install:
   # Setup Python test tools
+  - "%PYTHON%/Scripts/pip.exe install -U setuptools"
   - "%PYTHON%/Scripts/pip.exe install virtualenv"
   - "%PYTHON%/Scripts/pip.exe install tox"
   - "%PYTHON%/Scripts/pip.exe install codecov"
diff --git a/docs/src/dictionary/en-custom.txt b/docs/src/dictionary/en-custom.txt
index d245fc9..341ca1c 100644
--- a/docs/src/dictionary/en-custom.txt
+++ b/docs/src/dictionary/en-custom.txt
@@ -25,6 +25,7 @@ accessor
 boolean
 builtin
 deprecations
+directionality
 html
 iterable
 iterables
diff --git a/docs/src/markdown/about/changelog.md b/docs/src/markdown/about/changelog.md
index fe398a9..223c058 100644
--- a/docs/src/markdown/about/changelog.md
+++ b/docs/src/markdown/about/changelog.md
@@ -1,8 +1,11 @@
 # Changelog
 
-## 1.4.1
+## 1.5.0
 
 - **NEW**: Add `select_one` method like Beautiful Soup has.
+- **NEW**: Add `:dir()` selector (HTML only).
+- **FIX**: Fix issue handling issues of HTML fragments (elements without a `BeautifulSoup` object as a parent).
+- **FIX**: Fix internal `nth` range check.
 
 ## 1.4.0
 
diff --git a/docs/src/markdown/selectors.md b/docs/src/markdown/selectors.md
index fe26683..cf1d3fc 100644
--- a/docs/src/markdown/selectors.md
+++ b/docs/src/markdown/selectors.md
@@ -81,7 +81,8 @@ Selector                        | Example                             | Descript
 `:checked`                      | `#!css input:checked`               | Selects every checked `#!html <input>` element.
 `:current`                      | `#!css p:current`                   | As the document is not rendered, this will never match.
 `:current(sel, sel)`            | `#!css :current(p, li, dt, dd)`     | As the document is not rendered, this will never match.
-`:default`                      | `#!css input:default`               | Selects all `#!html <inputs>` that are the default among their related elements. See CSS specification to learn more about all that this targets.
+`:default`                      | `#!css input:default`               | Selects all `#!html <inputs>` elements that are the default among their related elements. See CSS specification to learn more about all that this targets.
+`:dir(direction)`               | `#!css div:dir(ltr)`                | Selects all `#!html <div>` elements that have a text direction of left to right.
 `:disabled`                     | `#!css input:disabled`              | Selects every disabled `#!html <input>` element.
 `:enabled`                      | `#!css input:enabled`               | Selects every enabled `#!html <input>` element.
 `:focus`                        | `#!css input:focus`                 | Focus states are not applicable, so this will never match.
diff --git a/soupsieve/__meta__.py b/soupsieve/__meta__.py
index eb61549..08c3852 100644
--- a/soupsieve/__meta__.py
+++ b/soupsieve/__meta__.py
@@ -186,5 +186,5 @@ def parse_version(ver, pre=False):
     return Version(major, minor, micro, release, pre, post, dev)
 
 
-__version_info__ = Version(1, 4, 0, "final")
+__version_info__ = Version(1, 5, 0, "final")
 __version__ = __version_info__._get_canonical()
diff --git a/soupsieve/css_match.py b/soupsieve/css_match.py
index 9415b2f..12751ba 100644
--- a/soupsieve/css_match.py
+++ b/soupsieve/css_match.py
@@ -3,6 +3,7 @@ from __future__ import unicode_literals
 from . import util
 import re
 from .import css_types as ct
+import unicodedata
 
 # Empty tag pattern (whitespace okay)
 RE_NOT_EMPTY = re.compile('[^ \t\r\n\f]')
@@ -21,6 +22,29 @@ REL_HAS_CLOSE_SIBLING = ':+'
 
 NS_XHTML = 'http://www.w3.org/1999/xhtml'
 
+DIR_FLAGS = ct.SEL_DIR_LTR | ct.SEL_DIR_RTL
+
+DIR_MAP = {
+    'ltr': ct.SEL_DIR_LTR,
+    'rtl': ct.SEL_DIR_RTL,
+    'auto': 0
+}
+
+
+class FakeNthParent(object):
+    """
+    Fake parent for `nth` selector.
+
+    When we have a fragment with no `BeautifulSoup` document object,
+    we can't evaluate `nth` selectors properly.  Create a temporary
+    fake parent so we can traverse the root element as a child.
+    """
+
+    def __init__(self, element):
+        """Initialize."""
+
+        self.contents = [element]
+
 
 class CSSMatch(object):
     """Perform CSS matching."""
@@ -38,14 +62,17 @@ class CSSMatch(object):
         while doc.parent:
             doc = doc.parent
         root = None
-        for child in doc.children:
-            if util.is_tag(child):
-                root = child
-                break
+        if not util.is_doc(doc):
+            root = doc
+        else:
+            for child in doc.children:
+                if util.is_tag(child):
+                    root = child
+                    break
         self.root = root
         self.scope = scope if scope is not doc else root
         self.html_namespace = self.is_html_ns(root)
-        self.is_xml = doc.is_xml and not self.html_namespace
+        self.is_xml = doc._is_xml and not self.html_namespace
 
     def get_namespace(self, el):
         """Get the namespace for the element."""
@@ -128,6 +155,16 @@ class CSSMatch(object):
             classes = [c for c in classes.strip().split(' ') if c]
         return classes
 
+    def get_attribute_by_name(self, el, name, default=None):
+        """Get attribute by name."""
+
+        value = default
+        for k, v in el.attrs.items():
+            if (k if self.is_xml else util.lower(k)) == name:
+                value = v
+                break
+        return value
+
     def match_namespace(self, el, tag):
         """Match the namespace of the element."""
 
@@ -316,6 +353,8 @@ class CSSMatch(object):
             if n.selectors and not self.match_selectors(el, n.selectors):
                 break
             parent = el.parent
+            if parent is None:
+                parent = FakeNthParent(el)
             last = n.last
             last_index = len(parent.contents) - 1
             relative_index = 0
@@ -370,9 +409,9 @@ class CSSMatch(object):
                 idx = last_idx = a * count + b if var else a
 
             # Evaluate elements while our calculated nth index is still in range
-            while 1 <= idx <= last_index:
+            while 1 <= idx <= last_index + 1:
                 child = None
-                # Evaluate while our child index is still range.
+                # Evaluate while our child index is still in range.
                 while 0 <= index <= last_index:
                     child = parent.contents[index]
                     index += factor
@@ -557,7 +596,7 @@ class CSSMatch(object):
         # Walk parents looking for `lang` (HTML) or `xml:lang` XML property.
         parent = el
         found_lang = None
-        while parent.parent and not found_lang:
+        while parent and parent.parent and not found_lang:
             ns = self.is_html_ns(parent)
             for k, v in parent.attrs.items():
                 if (
@@ -623,6 +662,100 @@ class CSSMatch(object):
 
         return match
 
+    def get_bidi(self, el):
+        """Get directionality from element text."""
+
+        for node in el.children:
+
+            # Analyze child text nodes
+            if util.is_tag(node):
+
+                # Avoid analyzing certain elements specified in the specification.
+                direction = DIR_MAP.get(util.lower(node.attrs.get('dir', '')), None)
+                if (
+                    util.lower(node.name) in ('bdi', 'script', 'style', 'textarea') or
+                    direction is not None
+                ):
+                    continue  # pragma: no cover
+
+                # Check directionality of this node's text
+                value = self.get_bidi(node)
+                if value is not None:
+                    return value
+
+                # Direction could not be determined
+                continue  # pragma: no cover
+
+            # Skip `doctype` comments, etc.
+            if util.is_special_string(node):
+                continue
+
+            # Analyze text nodes for directionality.
+            for c in node:
+                bidi = unicodedata.bidirectional(c)
+                if bidi in ('AL', 'R', 'L'):
+                    return ct.SEL_DIR_LTR if bidi == 'L' else ct.SEL_DIR_RTL
+        return None
+
+    def match_dir(self, el, directionality):
+        """Check directionality."""
+
+        # If we have to match both left and right, we can't match either.
+        if directionality & ct.SEL_DIR_LTR and directionality & ct.SEL_DIR_RTL:
+            return False
+
+        # Element has defined direction of left to right or right to left
+        direction = DIR_MAP.get(util.lower(el.attrs.get('dir', '')), None)
+        if direction not in (None, 0):
+            return direction == directionality
+
+        # Element is the document element (the root) and no direction assigned, assume left to right.
+        is_root = self.match_root(el)
+        if is_root and direction is None:
+            return ct.SEL_DIR_LTR == directionality
+
+        # If `input[type=telephone]` and no direction is assigned, assume left to right.
+        is_input = util.lower(el.name) == 'input'
+        is_textarea = util.lower(el.name) == 'textarea'
+        is_bdi = util.lower(el.name) == 'bdi'
+        itype = util.lower(self.get_attribute_by_name(el, 'type', '')) if is_input else ''
+        if is_input and itype == 'tel' and direction is None:
+            return ct.SEL_DIR_LTR == directionality
+
+        # Auto handling for text inputs
+        if ((is_input and itype in ('text', 'search', 'tel', 'url', 'email')) or is_textarea) and direction == 0:
+            if is_textarea:
+                value = []
+                for node in el.contents:
+                    if util.is_navigable_string(node) and not util.is_special_string(node):
+                        value.append(node)
+                value = ''.join(value)
+            else:
+                value = self.get_attribute_by_name(el, 'value', '')
+            if value:
+                for c in value:
+                    bidi = unicodedata.bidirectional(c)
+                    if bidi in ('AL', 'R', 'L'):
+                        direction = ct.SEL_DIR_LTR if bidi == 'L' else ct.SEL_DIR_RTL
+                        return direction == directionality
+                # Assume left to right
+                return ct.SEL_DIR_LTR == directionality
+            elif is_root:
+                return ct.SEL_DIR_LTR == directionality
+            return self.match_dir(el.parent, directionality)
+
+        # Auto handling for `bdi` and other non text inputs.
+        if (is_bdi and direction is None) or direction == 0:
+            direction = self.get_bidi(el)
+            if direction is not None:
+                return direction == directionality
+            elif is_root:
+                return ct.SEL_DIR_LTR == directionality
+            return self.match_dir(el.parent, directionality)
+
+        # Match parents direction
+        return self.match_dir(el.parent, directionality)
+
     def match_selectors(self, el, selectors):
         """Check if element matches one of the selectors."""
 
@@ -674,6 +807,9 @@ class CSSMatch(object):
                 # also not set.
                 if selector.flags & ct.SEL_INDETERMINATE and not self.match_indeterminate(el):
                     continue
+                # Validate element directionality
+                if selector.flags & DIR_FLAGS and not self.match_dir(el, selector.flags & DIR_FLAGS):
+                    continue
                 # Validate that the tag contains the specified text.
                 if not self.match_contains(el, selector.contains):
                     continue
@@ -691,7 +827,7 @@ class CSSMatch(object):
     def match(self, el):
         """Match."""
 
-        return el.parent and self.match_selectors(el, self.selectors)
+        return not util.is_doc(el) and util.is_tag(el) and self.match_selectors(el, self.selectors)
 
 
 class SoupSieve(ct.Immutable):
diff --git a/soupsieve/css_parser.py b/soupsieve/css_parser.py
index a1f1f63..894bc94 100644
--- a/soupsieve/css_parser.py
+++ b/soupsieve/css_parser.py
@@ -69,6 +69,7 @@ PSEUDO_COMPLEX_NO_MATCH = {
 
 # Complex pseudo classes that take very specific parameters and are handled special
 PSEUDO_SPECIAL = {
+    ':dir',
     ':lang',
     ':nth-child',
     ':nth-last-child',
@@ -127,6 +128,8 @@ PAT_PSEUDO_NTH_TYPE = r'''
 '''.format(ws=WSC, nth=NTH)
 # Pseudo class language (`:lang("*-de", en)`)
 PAT_PSEUDO_LANG = r':lang\({ws}*(?P<lang>{value}(?:{ws}*,{ws}*{value})*){ws}*\)'.format(ws=WSC, value=VALUE)
+# Pseudo class direction (`:dir(ltr)`)
+PAT_PSEUDO_DIR = r':dir\({ws}*(?P<dir>ltr|rtl){ws}*\)'.format(ws=WSC)
 # Combining characters (`>`, `~`, ` `, `+`, `,`)
 PAT_COMBINE = r'{ws}*?(?P<relation>[,+>~]|[ \t\r\n\f](?![,+>~])){ws}*'.format(ws=WSC)
 # Extra: Contains (`:contains(text)`)
@@ -285,6 +288,7 @@ class CSSParser(object):
             ("pseudo_nth_child", SelectorPattern(PAT_PSEUDO_NTH_CHILD)),
             ("pseudo_nth_type", SelectorPattern(PAT_PSEUDO_NTH_TYPE)),
             ("pseudo_lang", SelectorPattern(PAT_PSEUDO_LANG)),
+            ("pseudo_dir", SelectorPattern(PAT_PSEUDO_DIR)),
             ("pseudo_class", SelectorPattern(PAT_PSEUDO_CLASS)),
             ("pseudo_element", SelectorPattern(PAT_PSEUDO_ELEMENT)),
             ("at_rule", SelectorPattern(PAT_AT_RULE)),
@@ -631,6 +635,14 @@ class CSSParser(object):
 
         return has_selector
 
+    def parse_pseudo_dir(self, sel, m, has_selector):
+        """Parse pseudo direction."""
+
+        value = ct.SEL_DIR_LTR if util.lower(m.group('dir')) == 'ltr' else ct.SEL_DIR_RTL
+        sel.flags |= value
+        has_selector = True
+        return has_selector
+
     def parse_selectors(self, iselector, index=0, flags=0):
         """Parse selectors."""
 
@@ -685,6 +697,10 @@ class CSSParser(object):
                     has_selector = self.parse_pseudo_nth(sel, m, has_selector, iselector)
                 elif key == 'pseudo_lang':
                     has_selector = self.parse_pseudo_lang(sel, m, has_selector)
+                elif key == 'pseudo_dir':
+                    has_selector = self.parse_pseudo_dir(sel, m, has_selector)
+                    # Currently only supports HTML
+                    is_html = True
                 elif key == 'pseudo_close':
                     if split_last:
                         raise SyntaxError("Expecting more selectors at postion {}".format(m.start(0)))
diff --git a/soupsieve/css_types.py b/soupsieve/css_types.py
index 36ab3b2..5a1e01d 100644
--- a/soupsieve/css_types.py
+++ b/soupsieve/css_types.py
@@ -11,6 +11,8 @@ SEL_ROOT = 0x2
 SEL_DEFAULT = 0x4
 SEL_INDETERMINATE = 0x8
 SEL_SCOPE = 0x10
+SEL_DIR_LTR = 0x20
+SEL_DIR_RTL = 0x40
 
 
 class Immutable(object):
diff --git a/soupsieve/util.py b/soupsieve/util.py
index 22f9083..55378ad 100644
--- a/soupsieve/util.py
+++ b/soupsieve/util.py
@@ -34,6 +34,13 @@ UC_A = ord('A')
 UC_Z = ord('Z')
 
 
+def is_doc(obj):
+    """Is `BeautifulSoup` object."""
+
+    import bs4
+    return isinstance(obj, bs4.BeautifulSoup)
+
+
 def is_tag(obj):
     """Is tag."""
 

:dir() support
This is another selector that we just have to well define, once we understand the details, we can start work on this.
diff --git a/tests/test_level3.py b/tests/test_level3.py
index 1c0eb47..d6a302f 100644
--- a/tests/test_level3.py
+++ b/tests/test_level3.py
@@ -27,6 +27,8 @@ E ~ F
 """
 from __future__ import unicode_literals
 from . import util
+import bs4
+import soupsieve as sv
 
 
 class TestLevel3(util.TestCase):
@@ -763,6 +765,12 @@ class TestLevel3(util.TestCase):
             flags=util.HTML5
         )
 
+        # Paragraph is the root. There is no document.
+        markup = """<p id="1">text</p>"""
+        soup = bs4.BeautifulSoup(markup, 'html5lib')
+        fragment = soup.p.extract()
+        self.assertTrue(sv.match("p:nth-child(1)", fragment, flags=sv.DEBUG))
+
     def test_nth_last_child(self):
         """Test `nth` last child."""
 
diff --git a/tests/test_level4.py b/tests/test_level4.py
index 39ed634..d9590ff 100644
--- a/tests/test_level4.py
+++ b/tests/test_level4.py
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 """
 Test selectors level 4.
 
@@ -41,12 +42,6 @@ Not supported:
 
 - `:blank`: This applies to inputs with empty or otherwise null input.
 
-- `:dir(ltr)`: This applies to direction of text. This direction can be inherited from parents. Due to the way Soup
-  Sieve processes things, it would have to scan the parents and evaluate what is inherited. it doesn't account for the
-  CSS `direction` value, which is a good thing. It is doable, but not sure worth the effort. In addition, it seems there
-  is reference to being able to do something like `[dir=auto]` which would select either `ltr` or `rtl`. This seems to
-  add additional logic in to attribute selections which would complicate things, but still technically doable.
-
 - `:valid` / `:invalid`: We currently to not validate values, so this doesn't make sense at this time.
 
 - `:in-range` / `:out-of-range`: This applies to form elements only. You'd have to evaluate `value`, `min`, and `max`. I
@@ -1353,3 +1348,109 @@ class TestLevel4(util.TestCase):
             [],
             flags=util.HTML5
         )
+
+    def test_dir(self):
+        """Test direction."""
+
+        markup = """
+        <html id="0">
+        <head></head>
+        <body>
+        <div id="1" dir="rtl">
+          <span id="2">test1</span>
+          <div id="3" dir="ltr">test2
+            <div id="4" dir="auto"><!-- comment -->עִבְרִית<span id="5" dir="auto">()</span></div>
+            <div id="6" dir="auto"><script></script><b> </b><span id="7"><!-- comment -->עִבְרִית</span></div>
+            <span id="8" dir="auto">test3</span>
+          </div>
+          <input id="9" type="tel" value="333-444-5555" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}">
+          <input id="10" type="tel" dir="auto" value="333-444-5555" pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}">
+          <input id="11" type="email" dir="auto" value="test@mail.com">
+          <input id="12" type="search" dir="auto" value="()">
+          <input id="13" type="url" dir="auto" value="https://test.com">
+          <input id="14" type="search" dir="auto" value="עִבְרִית">
+          <input id="15" type="search" dir="auto" value="">
+          <input id="16" type="search" dir="auto">
+          <textarea id="17" dir="auto">עִבְרִית</textarea>
+          <textarea id="18" dir="auto"></textarea>
+        </div>
+        </body>
+        </html>
+        """
+
+        self.assert_selector(
+            markup,
+            "div:dir(rtl)",
+            ["1", "4", "6"],
+            flags=util.HTML5
+        )
+
+        self.assert_selector(
+            markup,
+            "div:dir(ltr)",
+            ["3"],
+            flags=util.HTML5
+        )
+
+        self.assert_selector(
+            markup,
+            "div:dir(ltr):dir(rtl)",
+            [],
+            flags=util.HTML5
+        )
+
+        self.assert_selector(
+            markup,
+            "div:dir(ltr)",
+            [],
+            flags=util.XML
+        )
+
+        self.assert_selector(
+            markup,
+            "span:dir(rtl)",
+            ['2', '5', '7'],
+            flags=util.HTML5
+        )
+
+        self.assert_selector(
+            markup,
+            "span:dir(ltr)",
+            ['8'],
+            flags=util.HTML5
+        )
+
+        self.assert_selector(
+            markup,
+            ":is(input, textarea):dir(ltr)",
+            ['9', '10', '11', '12', '13'],
+            flags=util.HTML5
+        )
+
+        self.assert_selector(
+            markup,
+            "html:dir(ltr)",
+            ['0'],
+            flags=util.HTML5
+        )
+
+        markup = """
+        <html id="0" dir="auto">
+        <head></head>
+        <body>
+        </body>
+        </html>
+        """
+
+        self.assert_selector(
+            markup,
+            "html:dir(ltr)",
+            ['0'],
+            flags=util.HTML5
+        )
+
+        # Input is root
+        markup = """<input id="1" type="text" dir="auto">"""
+        soup = bs4.BeautifulSoup(markup, 'html5lib')
+        fragment = soup.input.extract()
+        self.assertTrue(sv.match(":root:dir(ltr)", fragment, flags=sv.DEBUG))

pip install -e .[dev]
parse_log_pytest
requirements.txt
pytest pytest-cov coverage lxml beautifulsoup4
apt-get update apt-get install -y gcc
3.9
requirements/project.txt requirements/tests.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
beautifulsoup4==4.13.3
coverage==7.8.0
exceptiongroup==1.2.2
html5lib==1.1
iniconfig==2.1.0
lxml==5.3.1
packaging==24.2
pluggy==1.5.0
pytest==8.3.5
pytest-cov==6.0.0
six==1.17.0
-e git+https://github.com/facelessuser/soupsieve.git@43e365b693a1dacd90ef5b24fbb865c155b2f147#egg=soupsieve
tomli==2.2.1
typing_extensions==4.13.0
webencodings==0.5.1

name: soupsieve
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=3.0.16=h5eee18b_0
  - pip=25.0=py39h06a4308_0
  - python=3.9.21=he870216_1
  - readline=8.2=h5eee18b_0
  - setuptools=75.8.0=py39h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - tzdata=2025a=h04d1e81_0
  - wheel=0.45.1=py39h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - beautifulsoup4==4.13.3
      - coverage==7.8.0
      - exceptiongroup==1.2.2
      - html5lib==1.1
      - iniconfig==2.1.0
      - lxml==5.3.1
      - packaging==24.2
      - pluggy==1.5.0
      - pytest==8.3.5
      - pytest-cov==6.0.0
      - six==1.17.0
      - tomli==2.2.1
      - typing-extensions==4.13.0
      - webencodings==0.5.1
prefix: /opt/conda/envs/soupsieve

tests/test_level3.py::TestLevel3::test_nth_child tests/test_level4.py::TestLevel4::test_dir
tests/test_level3.py::TestLevel3::test_attribute_begins tests/test_level3.py::TestLevel3::test_attribute_contains tests/test_level3.py::TestLevel3::test_attribute_end tests/test_level3.py::TestLevel3::test_attribute_namespace tests/test_level3.py::TestLevel3::test_attribute_namespace_xhtml tests/test_level3.py::TestLevel3::test_checked tests/test_level3.py::TestLevel3::test_disabled tests/test_level3.py::TestLevel3::test_distant_sibling tests/test_level3.py::TestLevel3::test_empty tests/test_level3.py::TestLevel3::test_enable tests/test_level3.py::TestLevel3::test_first_of_type tests/test_level3.py::TestLevel3::test_last_child tests/test_level3.py::TestLevel3::test_last_of_type tests/test_level3.py::TestLevel3::test_namespace tests/test_level3.py::TestLevel3::test_not tests/test_level3.py::TestLevel3::test_nth_last_child tests/test_level3.py::TestLevel3::test_nth_last_of_type tests/test_level3.py::TestLevel3::test_nth_of_type tests/test_level3.py::TestLevel3::test_only_child tests/test_level3.py::TestLevel3::test_only_of_type tests/test_level3.py::TestLevel3::test_root tests/test_level3.py::TestLevel3::test_target tests/test_level3.py::TestLevel3::test_undefined_namespace tests/test_level4.py::TestLevel4::test_anylink tests/test_level4.py::TestLevel4::test_attribute_case tests/test_level4.py::TestLevel4::test_attribute_type_case tests/test_level4.py::TestLevel4::test_current_past_future tests/test_level4.py::TestLevel4::test_default tests/test_level4.py::TestLevel4::test_focus_visible tests/test_level4.py::TestLevel4::test_focus_within tests/test_level4.py::TestLevel4::test_has tests/test_level4.py::TestLevel4::test_host tests/test_level4.py::TestLevel4::test_host_context tests/test_level4.py::TestLevel4::test_indeterminate tests/test_level4.py::TestLevel4::test_is_matches_where tests/test_level4.py::TestLevel4::test_lang tests/test_level4.py::TestLevel4::test_local_link tests/test_level4.py::TestLevel4::test_multi_nested_not tests/test_level4.py::TestLevel4::test_nth_child_of_s tests/test_level4.py::TestLevel4::test_optional tests/test_level4.py::TestLevel4::test_paused tests/test_level4.py::TestLevel4::test_placeholder tests/test_level4.py::TestLevel4::test_playing tests/test_level4.py::TestLevel4::test_read_only tests/test_level4.py::TestLevel4::test_read_write tests/test_level4.py::TestLevel4::test_required tests/test_level4.py::TestLevel4::test_scope tests/test_level4.py::TestLevel4::test_target_within tests/test_level4.py::TestLevel4::test_user_invalid
docs/src/markdown/selectors.md soupsieve/__meta__.py docs/src/markdown/about/changelog.md docs/src/dictionary/en-custom.txt soupsieve/css_types.py soupsieve/css_parser.py appveyor.yml soupsieve/css_match.py soupsieve/util.py
docs/src/markdown/selectors.md soupsieve/__meta__.py docs/src/markdown/about/changelog.md docs/src/dictionary/en-custom.txt soupsieve/css_types.py soupsieve/css_parser.py appveyor.yml soupsieve/css_match.py soupsieve/util.py