diff options
author | MichelCalonder <michel.calonder@web.de> | 2023-12-28 19:27:42 +0100 |
---|---|---|
committer | MichelCalonder <michel.calonder@web.de> | 2023-12-28 19:27:42 +0100 |
commit | 683a0ab1086358497bc12c0d884cc5347026f052 (patch) | |
tree | a38c6074b649fd923733bf592101cd0e0c348d4c /test/render | |
parent | 05ae1051ee30fc8d71a44d3b65ce69748cbf0509 (diff) |
Added tests for css counters
Diffstat (limited to 'test/render')
-rw-r--r-- | test/render/counter.htm | 79 | ||||
-rw-r--r-- | test/render/counter.htm.png | bin | 0 -> 3300 bytes |
2 files changed, 79 insertions, 0 deletions
diff --git a/test/render/counter.htm b/test/render/counter.htm new file mode 100644 index 00000000..bd24d157 --- /dev/null +++ b/test/render/counter.htm @@ -0,0 +1,79 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html> +<head> + <title> + css counters + </title> + <style type="text/css"> + body { + counter-reset: section; + } + + h1 { + counter-reset: subsection; + } + + h1::before { + counter-increment: section; + content: "Section " counter(section) ". "; + } + + h2::before { + counter-increment: subsection; + content: counter(section) "." counter(subsection) " "; + } + + ol { + counter-reset: section; + list-style-type: none; + } + + li::before { + counter-increment: section; + content: counters(section,".") " "; + } + </style> +</head> +<body> + <h1>HTML/CSS Tutorials</h1> + <h2>HTML</h2> + <h2>CSS</h2> + <h2>Bootstrap</h2> + <h2>W3.CSS</h2> + + <h1>Scripting Tutorials</h1> + <h2>JavaScript</h2> + <h2>jQuery</h2> + <h2>React</h2> + + <h1>Programming Tutorials</h1> + <h2>Python</h2> + <h2>Java</h2> + <h2>C++</h2> + <ol> + <li>item</li> + <li>item + <ol> + <li>item</li> + <li>item</li> + <li>item + <ol> + <li>item</li> + <li>item</li> + <li>item</li> + </ol> + </li> + <li>item</li> + </ol> + </li> + <li>item</li> + <li>item</li> + </ol> + + <ol> + <li>item</li> + <li>item</li> + </ol> + +</body> +</html> diff --git a/test/render/counter.htm.png b/test/render/counter.htm.png Binary files differnew file mode 100644 index 00000000..ae151ac4 --- /dev/null +++ b/test/render/counter.htm.png |