Bug 265098

Summary: Elements should avoid floats even if they are as high as LayoutUnit::max()
Product: WebKit Reporter: Ahmad Saleem <ahmad.saleem792>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ahmad Saleem 2023-11-18 17:22:56 PST
Hi Team,

While going through Blink's commit, I came across another failing test but I don't know whether it is applicable as much since it seems to be edge case:

Blink Commit: https://chromium.googlesource.com/chromium/blink/+/af76e7423374640fa2aa5e5c550709e9a7fd39c4

Test Case: https://jsfiddle.net/01r2ez5f/show

^ Chrome Canary 121 - Passes & Firefox show below error:

Elements should avoid floats even if they are as high as LayoutUnit::max()
a

FAIL:
Expected 33554431 for offsetTop, but got 27. 

<table data-offset-y="33554431" id="table">
<tbody><tr><td>a</td>
</tr></tbody></table>

While WebKit ToT running via 'run-webkit-tests' have following output:


Elements should avoid floats even if they are as high as LayoutUnit::max()
a
FAIL:
Expected 33554432 for offsetTop, but got 33554431.

<table data-offset-y="33554432" id="table">
<tbody><tr><td>a</td>
</tr></tbody></table>

__

Since it is failing with 1 px, I just wanted to raise to get input whether it is worth fixing or we can just ignore.

Thanks!
Comment 1 Radar WebKit Bug Importer 2023-11-25 17:23:12 PST
<rdar://problem/118795348>
Comment 2 Ahmad Saleem 2024-01-04 20:16:09 PST
This 1px might have been fixed here: https://github.com/WebKit/WebKit/commit/2afefe7449cd82d4b70c9ed85add5827f44e7278

Not confirmed, just speculating.