Bug 234984

Summary: REGRESSION(r287683): <dialog> elements inside clipped/overflowed elements are no longer shown
Product: WebKit Reporter: Tim Nguyen (:ntim) <ntim>
Component: Layout and RenderingAssignee: Tim Nguyen (:ntim) <ntim>
Status: RESOLVED FIXED    
Severity: Normal CC: bfulgham, changseok, esprehn+autocc, ews-watchlist, fred.wang, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 84635, 231292    
Attachments:
Description Flags
Patch
simon.fraser: review+
[fast-cq] Patch none

Tim Nguyen (:ntim)
Reported 2022-01-07 13:27:30 PST
We used to show them before r287683, just at the wrong place, and with the wrong size. Now, we no longer show them. Example testcases are: imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/top-layer-containing-block.html [ ImageOnlyFailure ] imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/top-layer-parent-overflow-clip.html [ ImageOnlyFailure ] imported/w3c/web-platform-tests/html/semantics/interactive-elements/the-dialog-element/top-layer-parent-overflow-scroll.html [ ImageOnlyFailure ]
Attachments
Patch (7.04 KB, patch)
2022-01-07 13:31 PST, Tim Nguyen (:ntim)
simon.fraser: review+
[fast-cq] Patch (6.94 KB, patch)
2022-01-10 10:46 PST, Tim Nguyen (:ntim)
no flags
Radar WebKit Bug Importer
Comment 1 2022-01-07 13:27:45 PST
Tim Nguyen (:ntim)
Comment 2 2022-01-07 13:31:17 PST
zalan
Comment 3 2022-01-07 14:05:26 PST
Comment on attachment 448626 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448626&action=review It'd be interesting to know if Simon agrees with this direction. > Source/WebCore/rendering/RenderLayer.cpp:1780 > +static inline bool isContainerForPositioned(RenderLayer& layer, PositionType position, bool establishesTopLayer) It's hard to tell what establishesTopLayer means in this context without looking at the callsites (like what establishes the top layer). > LayoutTests/TestExpectations:2361 > I am curious about this change (going from Skip -> Crash -while I understand that it is a more precise definition of the expected outcome, I am wondering if there are other reasons)
Tim Nguyen (:ntim)
Comment 4 2022-01-07 14:14:25 PST
(In reply to zalan from comment #3) > > LayoutTests/TestExpectations:2361 > > > > I am curious about this change (going from Skip -> Crash -while I understand > that it is a more precise definition of the expected outcome, I am wondering > if there are other reasons) I changed it to Crash so if there is an unexpected PASS (either by this change, or by other changes I'm working on), it would be caught, while Skip would just leave it disabled, with less testing coverage.
Simon Fraser (smfr)
Comment 5 2022-01-10 10:25:25 PST
Comment on attachment 448626 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=448626&action=review > Source/WebCore/rendering/RenderLayer.cpp:4549 > + auto parentLayer = establishesTopLayer() ? renderer().view().layer() : parent(); Calling this 'parentLayer' is confusing because it's not always the parent layer. Maybe containerLayer?
Tim Nguyen (:ntim)
Comment 6 2022-01-10 10:40:37 PST
(In reply to zalan from comment #3) > Comment on attachment 448626 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=448626&action=review > > It'd be interesting to know if Simon agrees with this direction. > > > Source/WebCore/rendering/RenderLayer.cpp:1780 > > +static inline bool isContainerForPositioned(RenderLayer& layer, PositionType position, bool establishesTopLayer) > > It's hard to tell what establishesTopLayer means in this context without > looking at the callsites (like what establishes the top layer). I followed the naming of the `position` argument, though maybe we should look into merging both argument (taking a renderer?), but let's not do this here.
Tim Nguyen (:ntim)
Comment 7 2022-01-10 10:46:23 PST
Created attachment 448773 [details] [fast-cq] Patch
EWS
Comment 8 2022-01-10 10:51:51 PST
Committed r287845 (245894@main): <https://commits.webkit.org/245894@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 448773 [details].
Note You need to log in before you can comment on or make changes to this bug.