Bug 254492 - [IFC] Incorrect out-of-flow box placement when text-indent is present (display: inline)
Summary: [IFC] Incorrect out-of-flow box placement when text-indent is present (displa...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-03-26 17:30 PDT by zalan
Modified: 2023-09-28 15:43 PDT (History)
6 users (show)

See Also:


Attachments
Patch (7.56 KB, patch)
2023-03-26 18:02 PDT, zalan
no flags Details | Formatted Diff | Diff
[fast-cq]Patch (7.56 KB, patch)
2023-03-27 10:23 PDT, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2023-03-26 17:30:25 PDT
ssia
Comment 1 zalan 2023-03-26 18:02:38 PDT
Created attachment 465599 [details]
Patch
Comment 2 zalan 2023-03-27 10:23:23 PDT
Created attachment 465613 [details]
[fast-cq]Patch
Comment 3 EWS 2023-03-27 12:57:59 PDT
Committed 262170@main (fd637abec439): <https://commits.webkit.org/262170@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 465613 [details].
Comment 4 Radar WebKit Bug Importer 2023-03-27 12:58:18 PDT
<rdar://problem/107280354>
Comment 5 Thomas Wisniewski [:twisniewski] 2023-09-28 11:32:51 PDT
zalan, the test-case in the commit here renders quite differently in Firefox and Chrome, and not at all like the expected.html. Is this expected?
Comment 6 zalan 2023-09-28 12:02:37 PDT
(In reply to Thomas Wisniewski [:twisniewski] from comment #5)
> zalan, the test-case in the commit here renders quite differently in Firefox
> and Chrome, and not at all like the expected.html. Is this expected?
Here I was just matching the new inline layout codepath (IFC) with our legacy behavior (in retrospect, I should have named the files accordingly).
Comment 7 Thomas Wisniewski [:twisniewski] 2023-09-28 13:23:53 PDT
Ah, I see, s Chrome and Firefox's behavior is still considered correct, and Safari is considered to be failing this test? Thanks for the clarification!
Comment 8 zalan 2023-09-28 14:11:53 PDT
(In reply to Thomas Wisniewski [:twisniewski] from comment #7)
> Ah, I see, s Chrome and Firefox's behavior is still considered correct, and
> Safari is considered to be failing this test? 
I didn't look too closely. Let me look at these tests again.
Comment 9 zalan 2023-09-28 14:17:15 PDT
(In reply to zalan from comment #8)
> (In reply to Thomas Wisniewski [:twisniewski] from comment #7)
> > Ah, I see, s Chrome and Firefox's behavior is still considered correct, and
> > Safari is considered to be failing this test? 
> I didn't look too closely. Let me look at these tests again.
Apparently all the block containers have "text-indent: each line" which, according to caniuse, FireFox does not support yet. No wonder rendering does not match.
(this is about testing out-of-flow static positioning with the origin display value of "inline" after the _last_ line with _text_indent_)
Comment 10 Thomas Wisniewski [:twisniewski] 2023-09-28 15:43:02 PDT
Ah, you're right, that certainly does explain why the rendering would be different in Chrome and Firefox.

Maybe it's a good time to port these tests over to web platform tests, to further encourage other vendors to finish their implementations as well..