Bug 154393 - Tailing newline cause last element align error
Summary: Tailing newline cause last element align error
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-18 04:55 PST by billy3321
Modified: 2022-07-14 16:01 PDT (History)
3 users (show)

See Also:


Attachments
failed test page (679 bytes, text/html)
2016-02-18 04:55 PST, billy3321
no flags Details
this test will not cause error (680 bytes, text/html)
2016-02-18 04:57 PST, billy3321
no flags Details
Test reduction (426 bytes, text/html)
2016-02-19 11:58 PST, zalan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description billy3321 2016-02-18 04:55:46 PST
Created attachment 271653 [details]
failed test page

In the test case, if the F div and the close div tag(</div>) has only one newline, will generate a little gap and cause the align error. But if their has space with the newline, this error will not display.

The .box text-align set right or justify will cause this error.
Comment 1 billy3321 2016-02-18 04:57:21 PST
Created attachment 271654 [details]
this test will not cause error
Comment 2 zalan 2016-02-18 21:46:42 PST
Works fine with FF(44.0.2). Fails with Chrome (Version 48.0.2564.116 (64-bit))
Comment 3 zalan 2016-02-19 11:58:32 PST
Created attachment 271771 [details]
Test reduction
Comment 4 Brent Fulgham 2022-07-14 15:24:43 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Comment 5 zalan 2022-07-14 16:01:32 PDT
This is an IFC progression (legacy line layout still produces gap).