mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 08:00:45 +00:00
This commit is a three-parter that is hard to separate without breaking marker rendering: 1. Any marker style that results in a string, except for a literal string (e.g. `list-style-type: "@"`), should get the string ". " appended. We forgot to do this for the alpha and roman types. 2. Instead of using the "pixel size rounded up" from a font and adding an arbitrary 1 to that, we now use the exact pixel size for as long as possible to improve our vertical positioning of markers. 3. Instead of always adding a "default marker width" to the marker content width, we now only do this if we did not have text metrics available (i.e. the marker style is not a text type). This greatly improves horizontal positioning of text markers.
8 lines
356 B
HTML
8 lines
356 B
HTML
<!DOCTYPE html>
|
|
<link rel="match" href="../expected/ol-items-text-ref.html">
|
|
<ol>
|
|
<li style="list-style-type: lower-alpha">Item lower-alpha</li>
|
|
<li style="list-style-type: upper-alpha">Item upper-alpha</li>
|
|
<li style="list-style-type: lower-roman">Item lower-roman</li>
|
|
<li style="list-style-type: upper-roman">Item upper-roman</li>
|
|
</ol>
|