CSS_test.xhtml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. h t t :: / / t /
  4. h t t :: // // t //
  5. h ttttt ttttt ppppp sssss // // y y sssss ttttt //
  6. hhhh t t p p s // // y y s t //
  7. h hh t t ppppp sssss // // yyyyy sssss t //
  8. h h t t p s :: / / y .. s t .. /
  9. h h t t p sssss :: / / yyyyy .. sssss t .. /
  10. <https://y.st./>
  11. Copyright © 2017 Alex Yst <mailto:copyright@y.st>
  12. This program is free software: you can redistribute it and/or modify
  13. it under the terms of the GNU General Public License as published by
  14. the Free Software Foundation, either version 3 of the License, or
  15. (at your option) any later version.
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. GNU General Public License for more details.
  20. You should have received a copy of the GNU General Public License
  21. along with this program. If not, see <https://www.gnu.org./licenses/>.
  22. -->
  23. <!DOCTYPE html>
  24. <html xmlns="http://www.w3.org/1999/xhtml">
  25. <head>
  26. <base href="https://y.st./en/a/CSS_test.xhtml" />
  27. <title>CSS test &lt;https://y.st./en/a/CSS_test.xhtml&gt;</title>
  28. <link rel="icon" type="image/png" href="/link/CC_BY-SA_4.0/y.st./icon.png" />
  29. <link rel="stylesheet" type="text/css" href="/link/basic.css" />
  30. <link rel="stylesheet" type="text/css" href="/link/site-specific.css" />
  31. <script type="text/javascript" src="/script/javascript.js" />
  32. <meta name="viewport" content="width=device-width" />
  33. </head>
  34. <body>
  35. <nav>
  36. <p>
  37. <a href="/en/">Home</a> |
  38. <a href="/en/a/about.xhtml">About</a> |
  39. <a href="/en/a/contact.xhtml">Contact</a> |
  40. <a href="/a/canary.txt">Canary</a> |
  41. <a href="/en/URI_research/"><abbr title="Uniform Resource Identifier">URI</abbr> research</a> |
  42. <a href="/en/opinion/">Opinions</a> |
  43. <a href="/en/coursework/">Coursework</a> |
  44. <a href="/en/law/">Law</a> |
  45. <a href="/en/a/links.xhtml">Links</a> |
  46. <a href="/en/a/CSS_test.xhtml.asc">{this page}.asc</a>
  47. </p>
  48. <hr/>
  49. </nav>
  50. <header>
  51. <h1><abbr title="Cascading Style Sheets">CSS</abbr> test</h1>
  52. <p>A page for demonstration and testing purposes only</p>
  53. </header>
  54. <p>
  55. Strangely, if I put an <code>&lt;h1/&gt;</code> element within a <code>&lt;section/&gt;</code> or <code>&lt;article/&gt;</code> element, the W3C validator complains.
  56. I imagine that the same would happen if the <code>&lt;h1/&gt;</code> tag were put within a <code>&lt;blockquote/&gt;</code> element, but I have yet to test that.
  57. </p>
  58. <h1><code>&lt;h1/&gt;</code> element</h1>
  59. <h2><code>&lt;h2/&gt;</code> element</h2>
  60. <h3><code>&lt;h3/&gt;</code> element</h3>
  61. <h4><code>&lt;h4/&gt;</code> element</h4>
  62. <h5><code>&lt;h5/&gt;</code> element</h5>
  63. <h6><code>&lt;h6/&gt;</code> element</h6>
  64. <hr/>
  65. <blockquote id="blockquote">
  66. <p>
  67. This is contained in a <code>&lt;blockquote/&gt;</code> tag.
  68. This tag has no <code>&lt;blockquote/&gt;</code> tags as parents.
  69. </p>
  70. <blockquote>
  71. <p>
  72. This <code>&lt;blockquote/&gt;</code> tag is nested within another <code>&lt;blockquote/&gt;</code> tag.
  73. </p>
  74. <blockquote>
  75. <p>
  76. This <code>&lt;blockquote/&gt;</code> tag is within two other <code>&lt;blockquote/&gt;</code> tags.
  77. </p>
  78. <blockquote>
  79. <blockquote>
  80. <p>
  81. Once <code>&lt;blockquote/&gt;</code> tags are nested five deep, the alternating pattern is broken.
  82. I need to find a way to continue the pattern when these elements are nested to an arbitrarily-deep level.
  83. </p>
  84. </blockquote>
  85. </blockquote>
  86. </blockquote>
  87. </blockquote>
  88. </blockquote>
  89. <hr/>
  90. <p>
  91. This paragraph has several formatted strings in it.
  92. <kbd>For example, this sentence represents typed input.</kbd>
  93. </p>
  94. <ul>
  95. <li>
  96. <code>display: none;</code>
  97. <ul>
  98. <li>
  99. <code>&lt;head/&gt;</code>
  100. </li>
  101. </ul>
  102. <ul>
  103. <li>
  104. <code>&lt;script/&gt;</code>
  105. </li>
  106. </ul>
  107. </li>
  108. <li>
  109. <code>display: block;</code>
  110. <ul>
  111. <li>
  112. <code>&lt;html/&gt;</code>
  113. </li>
  114. </ul>
  115. <ul>
  116. <li>
  117. <code>&lt;body/&gt;</code>
  118. </li>
  119. </ul>
  120. <ul>
  121. <li>
  122. <code>&lt;article/&gt;</code>
  123. </li>
  124. </ul>
  125. <ul>
  126. <li>
  127. <code>&lt;section/&gt;</code>
  128. </li>
  129. </ul>
  130. <ul>
  131. <li>
  132. <code>&lt;nav/&gt;</code>
  133. </li>
  134. </ul>
  135. <ul>
  136. <li>
  137. <code>&lt;aside/&gt;</code>
  138. </li>
  139. </ul>
  140. <ul>
  141. <li>
  142. <code>&lt;h1/&gt;</code>
  143. </li>
  144. </ul>
  145. <ul>
  146. <li>
  147. <code>&lt;h2/&gt;</code>
  148. </li>
  149. </ul>
  150. <ul>
  151. <li>
  152. <code>&lt;h3/&gt;</code>
  153. </li>
  154. </ul>
  155. <ul>
  156. <li>
  157. <code>&lt;h4/&gt;</code>
  158. </li>
  159. </ul>
  160. <ul>
  161. <li>
  162. <code>&lt;h5/&gt;</code>
  163. </li>
  164. </ul>
  165. <ul>
  166. <li>
  167. <code>&lt;h6/&gt;</code>
  168. </li>
  169. </ul>
  170. <ul>
  171. <li>
  172. <code>&lt;header/&gt;</code>
  173. </li>
  174. </ul>
  175. <ul>
  176. <li>
  177. <code>&lt;footer/&gt;</code>
  178. </li>
  179. </ul>
  180. <ul>
  181. <li>
  182. <code>&lt;address/&gt;</code>
  183. </li>
  184. </ul>
  185. <ul>
  186. <li>
  187. <code>&lt;p/&gt;</code>
  188. </li>
  189. </ul>
  190. <ul>
  191. <li>
  192. <code>&lt;hr/&gt;</code>
  193. </li>
  194. </ul>
  195. <ul>
  196. <li>
  197. <code>&lt;pre/&gt;</code>
  198. </li>
  199. </ul>
  200. <ul>
  201. <li>
  202. <code>&lt;blockquote/&gt;</code>
  203. </li>
  204. </ul>
  205. <ul>
  206. <li>
  207. <code>&lt;ol/&gt;</code>
  208. </li>
  209. </ul>
  210. <ul>
  211. <li>
  212. <code>&lt;ul/&gt;</code>
  213. </li>
  214. </ul>
  215. <ul>
  216. <li>
  217. <code>&lt;dl/&gt;</code>
  218. </li>
  219. </ul>
  220. <ul>
  221. <li>
  222. <code>&lt;dt/&gt;</code>
  223. </li>
  224. </ul>
  225. <ul>
  226. <li>
  227. <code>&lt;dd/&gt;</code>
  228. </li>
  229. </ul>
  230. <ul>
  231. <li>
  232. <code>&lt;figure/&gt;</code>
  233. </li>
  234. </ul>
  235. <ul>
  236. <li>
  237. <code>&lt;figcaption/&gt;</code>
  238. </li>
  239. </ul>
  240. <ul>
  241. <li>
  242. <code>&lt;div/&gt;</code>
  243. </li>
  244. </ul>
  245. <ul>
  246. <li>
  247. <code>&lt;main/&gt;</code>
  248. </li>
  249. </ul>
  250. <ul>
  251. <li>
  252. <code>&lt;form/&gt;</code>
  253. </li>
  254. </ul>
  255. <ul>
  256. <li>
  257. <code>&lt;noscript/&gt;</code>
  258. </li>
  259. </ul>
  260. <ul>
  261. <li>
  262. <code>&lt;marquee/&gt;</code>
  263. </li>
  264. </ul>
  265. <ul>
  266. <li>
  267. <code>&lt;meter/&gt;</code>
  268. </li>
  269. </ul>
  270. <ul>
  271. <li>
  272. <code>&lt;progress/&gt;</code>
  273. </li>
  274. </ul>
  275. </li>
  276. <li>
  277. <code>display: list-item;</code>
  278. <ul>
  279. <li>
  280. <code>&lt;li/&gt;</code>
  281. </li>
  282. </ul>
  283. </li>
  284. <li>
  285. <code>display: inline;</code>
  286. <ul>
  287. <li>
  288. <code>&lt;a/&gt;</code>
  289. </li>
  290. </ul>
  291. <ul>
  292. <li>
  293. <code>&lt;em/&gt;</code>
  294. </li>
  295. </ul>
  296. <ul>
  297. <li>
  298. <code>&lt;strong/&gt;</code>
  299. </li>
  300. </ul>
  301. <ul>
  302. <li>
  303. <code>&lt;small/&gt;</code>
  304. </li>
  305. </ul>
  306. <ul>
  307. <li>
  308. <code>&lt;s/&gt;</code>
  309. </li>
  310. </ul>
  311. <ul>
  312. <li>
  313. <code>&lt;cite/&gt;</code>
  314. </li>
  315. </ul>
  316. <ul>
  317. <li>
  318. <code>&lt;q/&gt;</code>
  319. </li>
  320. </ul>
  321. <ul>
  322. <li>
  323. <code>&lt;dfn/&gt;</code>
  324. </li>
  325. </ul>
  326. <ul>
  327. <li>
  328. <code>&lt;abbr/&gt;</code>
  329. </li>
  330. </ul>
  331. <ul>
  332. <li>
  333. <code>&lt;data/&gt;</code>
  334. </li>
  335. </ul>
  336. <ul>
  337. <li>
  338. <code>&lt;time/&gt;</code>
  339. </li>
  340. </ul>
  341. <ul>
  342. <li>
  343. <code>&lt;code/&gt;</code>
  344. </li>
  345. </ul>
  346. <ul>
  347. <li>
  348. <code>&lt;var/&gt;</code>
  349. </li>
  350. </ul>
  351. <ul>
  352. <li>
  353. <code>&lt;samp/&gt;</code>
  354. </li>
  355. </ul>
  356. <ul>
  357. <li>
  358. <code>&lt;kbd/&gt;</code>
  359. </li>
  360. </ul>
  361. <ul>
  362. <li>
  363. <code>&lt;sub/&gt;</code>
  364. </li>
  365. </ul>
  366. <ul>
  367. <li>
  368. <code>&lt;sup/&gt;</code>
  369. </li>
  370. </ul>
  371. <ul>
  372. <li>
  373. <code>&lt;i/&gt;</code>
  374. </li>
  375. </ul>
  376. <ul>
  377. <li>
  378. <code>&lt;b/&gt;</code>
  379. </li>
  380. </ul>
  381. <ul>
  382. <li>
  383. <code>&lt;u/&gt;</code>
  384. </li>
  385. </ul>
  386. <ul>
  387. <li>
  388. <code>&lt;mark/&gt;</code>
  389. </li>
  390. </ul>
  391. <ul>
  392. <li>
  393. <code>&lt;ruby/&gt;</code>
  394. </li>
  395. </ul>
  396. <ul>
  397. <li>
  398. <code>&lt;rb/&gt;</code>
  399. </li>
  400. </ul>
  401. <ul>
  402. <li>
  403. <code>&lt;rt/&gt;</code>
  404. </li>
  405. </ul>
  406. <ul>
  407. <li>
  408. <code>&lt;rtc/&gt;</code>
  409. </li>
  410. </ul>
  411. <ul>
  412. <li>
  413. <code>&lt;rp/&gt;</code>
  414. </li>
  415. </ul>
  416. <ul>
  417. <li>
  418. <code>&lt;bdi/&gt;</code>
  419. </li>
  420. </ul>
  421. <ul>
  422. <li>
  423. <code>&lt;bdo/&gt;</code>
  424. </li>
  425. </ul>
  426. <ul>
  427. <li>
  428. <code>&lt;span/&gt;</code>
  429. </li>
  430. </ul>
  431. <ul>
  432. <li>
  433. <code>&lt;br/&gt;</code>
  434. </li>
  435. </ul>
  436. <ul>
  437. <li>
  438. <code>&lt;wbr/&gt;</code>
  439. </li>
  440. </ul>
  441. <ul>
  442. <li>
  443. <code>&lt;ins/&gt;</code>
  444. </li>
  445. </ul>
  446. <ul>
  447. <li>
  448. <code>&lt;del/&gt;</code>
  449. </li>
  450. </ul>
  451. </li>
  452. <li>
  453. <code>display: inline-block;</code>
  454. <ul>
  455. <li>
  456. <code>&lt;img/&gt;</code>
  457. </li>
  458. </ul>
  459. <ul>
  460. <li>
  461. <code>&lt;iframe/&gt;</code>
  462. </li>
  463. </ul>
  464. <ul>
  465. <li>
  466. <code>&lt;embed/&gt;</code>
  467. </li>
  468. </ul>
  469. <ul>
  470. <li>
  471. <code>&lt;object/&gt;</code>
  472. </li>
  473. </ul>
  474. <ul>
  475. <li>
  476. <code>&lt;param/&gt;</code>
  477. </li>
  478. </ul>
  479. <ul>
  480. <li>
  481. <code>&lt;video/&gt;</code>
  482. </li>
  483. </ul>
  484. <ul>
  485. <li>
  486. <code>&lt;audio/&gt;</code>
  487. </li>
  488. </ul>
  489. <ul>
  490. <li>
  491. <code>&lt;source/&gt;</code>
  492. </li>
  493. </ul>
  494. <ul>
  495. <li>
  496. <code>&lt;track/&gt;</code>
  497. </li>
  498. </ul>
  499. <ul>
  500. <li>
  501. <code>&lt;map/&gt;</code>
  502. </li>
  503. </ul>
  504. <ul>
  505. <li>
  506. <code>&lt;area/&gt;</code>
  507. </li>
  508. </ul>
  509. <ul>
  510. <li>
  511. <code>&lt;label/&gt;</code>
  512. </li>
  513. </ul>
  514. <ul>
  515. <li>
  516. <code>&lt;input/&gt;</code>
  517. </li>
  518. </ul>
  519. <ul>
  520. <li>
  521. <code>&lt;button/&gt;</code>
  522. </li>
  523. </ul>
  524. <ul>
  525. <li>
  526. <code>&lt;select/&gt;</code>
  527. </li>
  528. </ul>
  529. <ul>
  530. <li>
  531. <code>&lt;datalist/&gt;</code>
  532. </li>
  533. </ul>
  534. <ul>
  535. <li>
  536. <code>&lt;optgroup/&gt;</code>
  537. </li>
  538. </ul>
  539. <ul>
  540. <li>
  541. <code>&lt;option/&gt;</code>
  542. </li>
  543. </ul>
  544. <ul>
  545. <li>
  546. <code>&lt;textarea/&gt;</code>
  547. </li>
  548. </ul>
  549. <ul>
  550. <li>
  551. <code>&lt;keygen/&gt;</code>
  552. </li>
  553. </ul>
  554. <ul>
  555. <li>
  556. <code>&lt;output/&gt;</code>
  557. </li>
  558. </ul>
  559. <ul>
  560. <li>
  561. <code>&lt;progress/&gt;</code>
  562. </li>
  563. </ul>
  564. <ul>
  565. <li>
  566. <code>&lt;meter/&gt;</code>
  567. </li>
  568. </ul>
  569. <ul>
  570. <li>
  571. <code>&lt;fieldset/&gt;</code>
  572. </li>
  573. </ul>
  574. <ul>
  575. <li>
  576. <code>&lt;legend/&gt;</code>
  577. </li>
  578. </ul>
  579. <ul>
  580. <li>
  581. <code>&lt;template/&gt;</code>
  582. </li>
  583. </ul>
  584. <ul>
  585. <li>
  586. <code>&lt;canvas/&gt;</code>
  587. </li>
  588. </ul>
  589. <ul>
  590. <li>
  591. <code>&lt;applet/&gt;</code>
  592. </li>
  593. </ul>
  594. </li>
  595. <li>
  596. <code>display: table;</code>
  597. <ul>
  598. <li>
  599. <code>&lt;table/&gt;</code>
  600. </li>
  601. </ul>
  602. </li>
  603. <li>
  604. <code>display: table-caption;</code>
  605. <ul>
  606. <li>
  607. <code>&lt;caption/&gt;</code>
  608. </li>
  609. </ul>
  610. </li>
  611. <li>
  612. <code>display: table-column-group;</code>
  613. <ul>
  614. <li>
  615. <code>&lt;colgroup/&gt;</code>
  616. </li>
  617. </ul>
  618. </li>
  619. <li>
  620. <code>display: table-column;</code>
  621. <ul>
  622. <li>
  623. <code>&lt;col/&gt;</code>
  624. </li>
  625. </ul>
  626. </li>
  627. <li>
  628. <code>display: table-row-group;</code>
  629. <ul>
  630. <li>
  631. <code>&lt;tboby/&gt;</code>
  632. </li>
  633. </ul>
  634. </li>
  635. <li>
  636. <code>display: table-header-group;</code>
  637. <ul>
  638. <li>
  639. <code>&lt;thead/&gt;</code>
  640. </li>
  641. </ul>
  642. </li>
  643. <li>
  644. <code>display: table-footer-group;</code>
  645. <ul>
  646. <li>
  647. <code>&lt;tfoot/&gt;</code>
  648. </li>
  649. </ul>
  650. </li>
  651. <li>
  652. <code>display: table-row;</code>
  653. <ul>
  654. <li>
  655. <code>&lt;tr/&gt;</code>
  656. </li>
  657. </ul>
  658. </li>
  659. <li>
  660. <code>display: table-cell;</code>
  661. <ul>
  662. <li>
  663. <code>&lt;td/&gt;</code>
  664. </li>
  665. </ul>
  666. <ul>
  667. <li>
  668. <code>&lt;th/&gt;</code>
  669. </li>
  670. </ul>
  671. </li>
  672. </ul>
  673. <hr/>
  674. <p>
  675. Copyright © 2017 Alex Yst;
  676. You may modify and/or redistribute this document under the terms of the <a rel="license" href="/license/gpl-3.0-standalone.xhtml"><abbr title="GNU&apos;s Not Unix">GNU</abbr> <abbr title="General Public License version Three or later">GPLv3+</abbr></a>.
  677. If for some reason you would prefer to modify and/or distribute this document under other free copyleft terms, please ask me via email.
  678. My address is in the source comments near the top of this document.
  679. This license also applies to embedded content such as images.
  680. For more information on that, see <a href="/en/a/licensing.xhtml">licensing</a>.
  681. </p>
  682. <p>
  683. <abbr title="World Wide Web Consortium">W3C</abbr> standards are important.
  684. This document conforms to the <a href="https://validator.w3.org./nu/?doc=https%3A%2F%2Fy.st.%2Fen%2Fa%2FCSS_test.xhtml"><abbr title="Extensible Hypertext Markup Language">XHTML</abbr> 5.1</a> specification and uses style sheets that conform to the <a href="http://jigsaw.w3.org./css-validator/validator?uri=https%3A%2F%2Fy.st.%2Fen%2Fa%2FCSS_test.xhtml"><abbr title="Cascading Style Sheets">CSS</abbr>3</a> specification.
  685. </p>
  686. </body>
  687. </html>