Bug 259631

Summary: Out-of-flow <br> should not trigger a line break
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, cdumez, changseok, esprehn+autocc, ews-watchlist, glenn, kangil.han, koivisto, kondapallykalyan, mmaxfield, ntim, pdr, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=230048
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Comment 1 zalan 2023-07-29 16:24:02 PDT
Created attachment 467157 [details]
Patch
Comment 2 Tim Nguyen (:ntim) 2023-07-29 21:32:20 PDT
Comment on attachment 467157 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=467157&action=review

> LayoutTests/fast/inline/out-of-flow-forced-line-break.html:1
> +<style>

Would be a really good WPT especially if browsers disagree here.
Comment 3 zalan 2023-07-29 21:40:22 PDT
Created attachment 467158 [details]
Patch
Comment 4 zalan 2023-07-30 21:09:11 PDT
Created attachment 467159 [details]
Patch
Comment 5 zalan 2023-08-01 07:28:58 PDT
alternatively we could just create a generic RenderBox for such out-of-flow line breaks so that we don't have to promote RenderLineBreak to a RenderBox subclass.
Comment 6 zalan 2023-08-01 07:29:36 PDT
(though most of this patch would still be needed)
Comment 7 zalan 2023-08-01 07:31:08 PDT
(In reply to Tim Nguyen (:ntim) from comment #2)
> Comment on attachment 467157 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=467157&action=review
> 
> > LayoutTests/fast/inline/out-of-flow-forced-line-break.html:1
> > +<style>
> 
> Would be a really good WPT especially if browsers disagree here.
agree. we would still fail slightly more involved WPT tests though.
Comment 8 EWS 2023-08-01 08:23:20 PDT
Committed 266475@main (f71ea9e98639): <https://commits.webkit.org/266475@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 467159 [details].
Comment 9 Radar WebKit Bug Importer 2023-08-01 08:24:19 PDT
<rdar://problem/113208050>