From 84800a5b4fae710f16e72c68f7b2699039fca3c7 Mon Sep 17 00:00:00 2001 From: miere43 Date: Tue, 11 May 2021 17:14:57 +0300 Subject: [PATCH] Base: Add :nth-last-child test document --- Base/res/html/misc/nth-last-child.html | 140 +++++++++++++++++++++++++ Base/res/html/misc/welcome.html | 1 + 2 files changed, 141 insertions(+) create mode 100644 Base/res/html/misc/nth-last-child.html diff --git a/Base/res/html/misc/nth-last-child.html b/Base/res/html/misc/nth-last-child.html new file mode 100644 index 0000000000..24bff73546 --- /dev/null +++ b/Base/res/html/misc/nth-last-child.html @@ -0,0 +1,140 @@ + + + + :nth-last-child test + + + +

:nth-last-child(odd)

+
+
1
+
2 +
+
3
+
4 +
+
+ +

:nth-last-child(2n+1) - same as odd

+
+
1
+
2 +
+
3
+
4 +
+
+ +

:nth-last-child(even)

+
+
1 +
+
2
+
3 +
+
4
+
+ +

:nth-last-child(2n) - same as even

+
+
1 +
+
2
+
3 +
+
4
+
+ +

:nth-last-child(2)

+
+
1
+
2 +
+
3
+
+ +

:nth-last-child(3n)

+
+
1 +
+
2
+
3
+
4 +
+
5
+
6
+
+ +

:nth-last-child(3n+1)

+
+
1
+
2
+
3 +
+
4
+
5
+
6 +
+
+ +

:nth-last-child(3n-1)

+
+
1
+
2 +
+
3
+
4
+
5 +
+
6
+
+ +

:nth-last-child(-n+3)

+
+
1
+
2 +
+
3 +
+
4 +
+
+ +

:nth-last-child(n)

+
+
1 +
+
2 +
+
3 +
+
+ +

:nth-last-child(-n) - same as n

+
+
1 +
+
2 +
+
3 +
+
+ +

:nth-last-child(+n) - same as n

+
+
1 +
+
2 +
+
3 +
+
+ +

:nth-last-child(0n+1)

+
+
1
+
2
+
3 +
+
+ +

:nth-last-child(n+2):nth-last-child(-n+3)

+
+
1
+
2
+
3 +
+
4 +
+
5
+
+ + diff --git a/Base/res/html/misc/welcome.html b/Base/res/html/misc/welcome.html index 4a6d107269..af2469f9cc 100644 --- a/Base/res/html/misc/welcome.html +++ b/Base/res/html/misc/welcome.html @@ -92,6 +92,7 @@ span#loadtime {
  • :last-child
  • :only-child
  • :nth-child
  • +
  • :nth-last-child
  • :empty
  • :root
  • form