Bug 229670

Summary: [GTK] Table text wraps unexpectedly
Product: WebKit Reporter: Milan Crha <mcrha>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: kkinnunen
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
wk2-css.c
none
what it looks like after open (good state)
none
when made the window wider (bad state)
none
test a.html none

Description Milan Crha 2021-08-30 09:28:03 PDT
Created attachment 436779 [details]
wk2-css.c

Coming from a downstream bug report:
https://gitlab.gnome.org/GNOME/evolution/-/issues/1575

Attached is a test case. The first line contains a command to build & run it.

Steps:
a) compile and run the wk2-css.c - it opens with correct text shown
b) when the window is made wide enough, the text (link) suddenly wraps, showing one letter per line

The MiniBrowser doesn't reproduce it here, but it can be due to opening too wide, because when I increase the window size in the code to 800 pixels, then it also doesn't reproduce the problem.
Comment 1 Milan Crha 2021-08-30 09:29:07 PDT
Created attachment 436780 [details]
what it looks like after open (good state)
Comment 2 Milan Crha 2021-08-30 09:29:44 PDT
Created attachment 436781 [details]
when made the window wider (bad state)
Comment 3 Milan Crha 2021-08-30 09:37:15 PDT
Created attachment 436783 [details]
test a.html

I figured I can reproduce it also in the MiniBrowser.
Steps:
a) open the attached a.html in the MiniBrowser
b) make the window as smallest as possible (minimum width)
c) reload the page
d) make the window wider - after certain value the link wraps

Follow up:
e) reload the page (in the bad state) - it shows the content correctly now, no matter how much wide the window is made
Comment 4 Milan Crha 2021-08-30 09:37:52 PDT
I forgot to mention, my version is webkit2gtk3-2.32.3-1.fc34.x86_64