DescriptionRework list marker spacing for better web compatibility.
- Revise spacing between list marker and list item text to position marker
directly alongside text. This essentially leads to rendering the marker text a
bit farther to the right (for LTR) or left (for RTL), which is more compatible
with what we see in IE/FF. Previously we applied varying logic that led to a
larger space, typically ~several font-space-width in width, between marker and
item text. Our deviance from other browser behavior is what led to the
associated bug wherein web developer was surprised that, only in Chrome,
marker text was cut off by overflow: hidden.
- Only highlight selected list markers when
SelectionPaintingWithoutSelectionGaps is disabled. Note even prior to this
change the text of the first list marker could never be selected.
- Introduce implementation-internal notion of list style 'category' to reduce
redundant verbose switch statements.
- Render 'symbol' list style (disc, square, circle) markers by just rendering
their associated marker text character. Previously we painted the symbols with
appropriate graphics calls. This leads to a slightly different look for the
symbol bullets (in default font, for example, smaller). This simplifies layout
and paint logic.
BUG=472084
Patch Set 1 #Patch Set 2 : Simplify verbose switch statements. #Patch Set 3 : Remove fprintf. #Patch Set 4 : Sync to head. #Patch Set 5 : Fix compile error with default switch case. #
Total comments: 10
Patch Set 6 : Integrate feedback, update tests. #Patch Set 7 : Remove unused context configuration. Add initial set of test expectations. #Patch Set 8 : More updated expectations. #Messages
Total messages: 17 (7 generated)
|