From 340042ea464c7b9e0eec6ff7ffb7839eb927ad62 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 17 Dec 2024 18:41:49 +0100 Subject: dom, match: optimize :nth-child, :nth-last-child I want to use it in the UA sheet, so the loop won't cut it. (Also fix a parsing bug that prevented "of" from working.) --- test/layout/nth-child.color.expected | 31 +++++++++++++++++++ test/layout/nth-child.html | 60 ++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 test/layout/nth-child.color.expected create mode 100644 test/layout/nth-child.html (limited to 'test/layout') diff --git a/test/layout/nth-child.color.expected b/test/layout/nth-child.color.expected new file mode 100644 index 00000000..de99ff28 --- /dev/null +++ b/test/layout/nth-child.color.expected @@ -0,0 +1,31 @@ + + • test  + • test  + • test  + • test  + • test  +  + • test  + • test  + • test  + • test  + • test  +  + 1. test  + 2. test  + 3. test  + 4. test  + 5. test  +  + 1. test  + 2. test  + 3. test  + 4. test  + 5. test  +  + 1. test  + 2. test  + 3. test  + 4. test  + 5. test  + diff --git a/test/layout/nth-child.html b/test/layout/nth-child.html new file mode 100644 index 00000000..0e648954 --- /dev/null +++ b/test/layout/nth-child.html @@ -0,0 +1,60 @@ + + + + + + + +
    +
  1. test +
  2. test +
  3. test +
  4. test +
  5. test +
+ +
    +
  1. test +
  2. test +
  3. test +
  4. test +
  5. test +
+ +
    +
  1. test +
  2. test +
  3. test +
  4. test +
  5. test +
-- cgit