Status: FAIL | Duration: 16ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-pseudo/marker-content-018.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Test: ::marker pseudo elements styled with 'content' property</title> <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> <link rel="match" href="marker-content-018-ref.html"> <link rel="help" href="https://drafts.csswg.org/css-pseudo-4/#marker-pseudo"> <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-rules"> <meta name="assert" content="Checks that the 'content' property of a ::marker doesn't affect white space."> <style> ol { float: left; width: 100px; } .inside { list-style-position: inside; } li:nth-child(1)::marker { content: "1" } li:nth-child(2)::marker { content: "1 " } li:nth-child(3)::marker { content: "1 " } li:nth-child(4)::marker { content: " 1" } li:nth-child(5)::marker { content: " 1" } li:nth-child(6)::marker { content: " 1 " } li:nth-child(7)::marker { content: "1\9 2" } li:nth-child(8)::marker { content: "1\a 2" } </style> <ol class="inside"> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> </ol> <ol class="inside"> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> </ol> <ol class="outside"> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> </ol> <ol class="outside"> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> </ol>
/css/css-pseudo/marker-content-018-ref.html
<!DOCTYPE html> <meta charset="utf-8"> <title>CSS Reference: ::marker pseudo elements styled with 'content' property</title> <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> <style> ol { float: left; width: 100px; } .inside { list-style-position: inside; } li:nth-child(1) { list-style-type: "1" } li:nth-child(2) { list-style-type: "1 " } li:nth-child(3) { list-style-type: "1 " } li:nth-child(4) { list-style-type: " 1" } li:nth-child(5) { list-style-type: " 1" } li:nth-child(6) { list-style-type: " 1 " } li:nth-child(7) { list-style-type: "1\9 2" } li:nth-child(8) { list-style-type: "1\a 2" } </style> <ol class="inside"> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> </ol> <ol class="inside"> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> </ol> <ol class="outside"> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> <li>item</li> </ol> <ol class="outside"> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> <li> item</li> </ol>