mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Tests for recalculating ordinals after list manipulation
FIXME: Rendering modifications to a list is sometimes not pixel-perfect vs. reference (likely a bug). After this is fixed, screenshot tests from this commit will likely fail + can be moved to ref tests.
This commit is contained in:
parent
20546725be
commit
51b4b4a270
Notes:
github-actions[bot]
2025-06-16 11:46:13 +00:00
Author: https://github.com/manuel-za
Commit: 51b4b4a270
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4442
Reviewed-by: https://github.com/AtkinsSJ ✅
Reviewed-by: https://github.com/InvalidUsernameException
Reviewed-by: https://github.com/R-Goc
Reviewed-by: https://github.com/skyz1 ✅
45 changed files with 1068 additions and 0 deletions
|
@ -0,0 +1,58 @@
|
|||
<!DOCTYPE html>
|
||||
<body>
|
||||
<ol id="ol1">
|
||||
<li>1</li>
|
||||
<!-- Remove x -->
|
||||
<li>2</li>
|
||||
<div id="div1">
|
||||
<li>3</li>
|
||||
<!-- Remove div / y -->
|
||||
<li>4</li>
|
||||
</div>
|
||||
<div>
|
||||
<ol reversed start=20 id="ol2">
|
||||
<div> <!-- insert start -->
|
||||
<li>20</li>
|
||||
<li>19</li>
|
||||
</div>
|
||||
<p id="p1">
|
||||
<span>
|
||||
<li>18</li>
|
||||
</span>
|
||||
</p>
|
||||
<li>17</li>
|
||||
<li>16</li> <!-- append -->
|
||||
<li>15</li> <!-- insert last -->
|
||||
</ol>
|
||||
</div>
|
||||
<hr />
|
||||
<ol >
|
||||
<li value=30>30</li>
|
||||
<div>
|
||||
<li>31</li>
|
||||
</div>
|
||||
<div><div>
|
||||
<li>32</li>
|
||||
<li>33</li>
|
||||
<li>34</li>
|
||||
</div></div>
|
||||
<ol start=40>
|
||||
<li>40</li>
|
||||
<div style="display:list-item">41</div>
|
||||
<div id="div2"><div><div>
|
||||
<span style="display:list-item">42</span> <!-- insert before move -->
|
||||
</div></div></div>
|
||||
<p id="p2" style="display:list-item">43</p>
|
||||
</ol>
|
||||
<div><div><div id="div3">
|
||||
<li>35</li>
|
||||
<!-- Remove child -->
|
||||
<div></div>
|
||||
<li>36</li>
|
||||
<li>37</li>
|
||||
</div></div></div>
|
||||
</ol>
|
||||
<li>5</li>
|
||||
<li>6</li>
|
||||
</ol>
|
||||
</body>
|
Loading…
Add table
Add a link
Reference in a new issue