Bug 222603 - 1-pixel diff when rendering inline blocks with heights with decimals
Summary: 1-pixel diff when rendering inline blocks with heights with decimals
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-02 09:42 PST by Sergio Villar Senin
Modified: 2022-11-07 12:38 PST (History)
5 users (show)

See Also:


Attachments
Test case (702 bytes, text/html)
2021-03-02 09:42 PST, Sergio Villar Senin
no flags Details
Screenshot (933 bytes, image/png)
2021-03-02 09:43 PST, Sergio Villar Senin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergio Villar Senin 2021-03-02 09:42:29 PST
Created attachment 421951 [details]
Test case

Check the attached example. There is a 1 pixel difference between the second and the other two examples just between the bottom red and green borders. There is no difference in the rendering in both Firefox and Chromium. They render the three "columns" as WebKit renders the second one, i.e, with 1 pixel between the two borders. 

I'm almost sure it's a rounding issue due to using sizes with decimals, because it does not happen when you use natural numbers instead of real ones.
Comment 1 Sergio Villar Senin 2021-03-02 09:43:53 PST
Created attachment 421952 [details]
Screenshot

Adding a screenshot demonstrating the issue.
Comment 2 Radar WebKit Bug Importer 2021-03-09 09:43:14 PST
<rdar://problem/75221421>
Comment 3 Ahmad Saleem 2022-11-07 12:38:35 PST
I am not able to reproduce this bug in Safari 16.1 and Safari is matching other browsers (Chrome Canary 109 and Firefox Nightly 108) and showing "gap" similar to middle one from reference screenshot for all in all browsers.

Marking this as "RESOLVED CONFIGURATION CHANGED", please reopen if it is reproducible with updated test case. Thanks!