Skip to content

Commit

Permalink
Merge :has() forgiving selector parsing tests into a single test (#43168
Browse files Browse the repository at this point in the history
)

As suggested by @nt1m in #43080.
  • Loading branch information
foolip authored Nov 15, 2023
1 parent 5f090b4 commit 1bc99b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Selectors: The relational pseudo-class (disallow nesting :has() inside :has(), but serialize back unchanged)</title>
<title>CSS Selectors: The relational pseudo-class (forgiving selector parsing)</title>
<link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/8356">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/css/support/parsing-testcommon.js"></script>
<script>
// These are split out from the non-tentative version of the test
// because they depend on changes to serialization of :is() and :where()
// that have not been standardized yet.
// disallow nesting :has() inside :has(), but serialize back unchanged
test_valid_forgiving_selector(':has(:is(:has(*)))');
test_valid_forgiving_selector(':has(:where(:has(*)))');
// serialize :is() back unchanged
test_valid_forgiving_selector(':has(:is(.a, 123))');
</script>
14 changes: 0 additions & 14 deletions css/selectors/parsing/parse-has.tentative.html

This file was deleted.

0 comments on commit 1bc99b6

Please sign in to comment.