Bug 298631
| Summary: | [css-list] Render marker text closer to list items | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | BrowserCompat, InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=298349 | ||
Ahmad Saleem
Hi Team,
While looking into list-items, I came across two tests failing in Safari / WebKit only.
Test Case (LTR): https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=14056
Test Case (RTL): https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=14057
^ The numbers are half clipped, while other browsers show them properly. Fails on WebKit ToT (299783@main). Passes on Firefox Nightly 144 and Chrome Canary 142.
Blink Commit: https://chromium.googlesource.com/chromium/src.git/+/ae74f84464416b7d9fc63e808c4161eb08ffc1c3
WebKit Source: https://searchfox.org/wubkat/rev/379f807d0ee26713ff73973eea9a42e90f274bd7/Source/WebCore/rendering/RenderListMarker.cpp#414
Just raising, so we can fix it.
Thanks!
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
I think this might get fixed by bug 298349.
Ahmad Saleem
Changing:
return { -minPreferredLogicalWidth() - offset / 2, offset / 2 };
to:
return { -minPreferredLogicalWidth(), 0 };
___
Fixes those two tests.
Radar WebKit Bug Importer
<rdar://problem/160736173>