| Summary: | Changing text color and removing line-clamp on hover causes text to disappear permanently | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jordan Pittman <jordan> | ||||||||||
| Component: | Layout and Rendering | Assignee: | zalan <zalan> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | bfulgham, changseok, darin, esprehn+autocc, ews-watchlist, glenn, kondapallykalyan, pdr, simon.fraser, webkit-bug-importer, zalan | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Safari 15 | ||||||||||||
| Hardware: | Mac (Apple Silicon) | ||||||||||||
| OS: | macOS 12 | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Jordan Pittman
2022-05-13 19:49:29 PDT
Oh wow. Thanks for the report. Very curious. Will look into it. Created attachment 459356 [details]
Test reduction
B---YGLS- --* RenderView at (0,0) size 1385x753 renderer->(0x1370007b0) B-----LS- -- HTML RenderBlock at (0,0) size 1385x753 renderer->(0x137001640) node->(0x137004dd0) B-------- -- BODY RenderBody at (8,8) size 1369x737 renderer->(0x137001780) node->(0x1370050d0) B--O--LS- -- DIV RenderDeprecatedFlexibleBox at (0,0) size 100x0 renderer->(0x137002f60) node->(0x1370051f0) (layout overflow 0,0 100x90) B---YG--- -- RenderBlock at (0,0) size 100x0 renderer->(0x137002c50) (layout overflow 0,0 100x90) (visual overflow 0,0 100x90) -------- -- line at (0.00,0.00) size (100.00x18.00) baseline (14.00) enclosing top (0.00) bottom (18.00) -------- -- Inline level boxes: -------- -- Inline box at (0.00,0.00) size (97.78x18.00) -------- -- Runs: -------- -- box box at (0.00,0.00) size 97.78x18.00 -------- -- text box at (0.00,0.00) size 97.78x18.00 box(0, 16) ^^ The RenderDeprecatedFlexibleBox's height computes to 0px. Created attachment 459360 [details]
Patch
Committed r294211 (250569@main): <https://commits.webkit.org/250569@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459360 [details]. Comment on attachment 459360 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459360&action=review > Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp:189 > + if (hadLineClamp && !hasLineClamp) This if statement doesn’t have to check both. (In reply to Darin Adler from comment #7) > Comment on attachment 459360 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=459360&action=review > > > Source/WebCore/rendering/RenderDeprecatedFlexibleBox.cpp:189 > > + if (hadLineClamp && !hasLineClamp) > > This if statement doesn’t have to check both. Indeed. Thanks! Reopening to attach new patch. Created attachment 459591 [details]
[fast-cq]Patch
Committed r294503 (250760@main): <https://commits.webkit.org/250760@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459591 [details]. |