| <!DOCTYPE html> |
| <meta charset="utf-8"> |
| <title>CSS Lists: test the change of list-style-position</title> |
| <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> |
| <link rel="match" href="change-list-style-position-003-ref.html"> |
| <link rel="help" href="https://www.w3.org/TR/CSS22/generate.html#lists"> |
| <style> |
| div { |
| border: 5px solid orange; |
| display: list-item; |
| margin-left: 40px; |
| } |
| div > div { |
| list-style-type: decimal; |
| } |
| </style> |
| <div><div>text</div></div> |
| <script> |
| document.body.offsetHeight; |
| document.body.style.listStylePosition = "inside"; |
| </script> |