Repository navigation
Commit 0f793a5
committed
Add <li value> support, fix list-style-type:square's wrong glyph
<li value="N"> (a WHATWG HTML presentational hint) had no effect on
GetIndexForList's numbering - only <ol start>/reversed were consulted.
Later items without their own explicit value now continue counting
from a value-carrying item, matching every browser.
Also fixes list-style-type:square rendering "♠" (U+2660 BLACK SPADE
SUIT card-suit glyph) instead of an actual square - presumably a
copy/paste typo, noticed while auditing this code for the counter
port above. Re-approves the Bullets.png baseline for the corrected
marker glyph.
Ports the CSS2.1-relevant subset of PeachPDF's
ListItemCounterIntegrationTests.cs (ol start/reversed were already
correct; li value and the marker-glyph fix are new).1 parent 9911bd2 commit 0f793a5
3 files changed
Lines changed: 83 additions & 1 deletion
File tree
- Source
- HtmlRenderer/Core/Dom
- Test/HtmlRenderer.IntegrationTest
- Baselines
- Content
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1227 | 1227 | | |
1228 | 1228 | | |
1229 | 1229 | | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
| 1234 | + | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
1230 | 1239 | | |
1231 | 1240 | | |
1232 | 1241 | | |
| |||
1262 | 1271 | | |
1263 | 1272 | | |
1264 | 1273 | | |
1265 | | - | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1266 | 1278 | | |
1267 | 1279 | | |
1268 | 1280 | | |
| |||
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
0 commit comments