HtmlViewer icon indicating copy to clipboard operation
HtmlViewer copied to clipboard

CSS style table-layout:fixed not supported correctly

Open jbartlau opened this issue 10 years ago • 1 comments

"Old" issue: https://code.google.com/p/thtmlviewer/issues/detail?id=325. Was unable to find it in this project's issue tracker.

Given the HTML in the attachment (rename txt to htm):

sample.txt

FF or IE render as expected. The three table columns are displayed with the same size. But rendered in the FrameDemo.exe the first column makes some trouble: all the characters of the word "Zusatzdaten" are wrapped, each in a single line. Probably the CSS property 'word-wrap:break-word' could be the problem here.

Can you confirm the problem? Do you have a solution for that already? We'd be happy to provide any additional input you may need to look into this.

-John

jbartlau avatar Nov 18 '15 13:11 jbartlau

Answer to "Old" issue: Thanks for spotting this issue.

It is not caused by "word-wrap=break-word" but by "table-layout:fixed". As there are no columns widths given, THtmlViewer uses calculated best sizes, but that is not as specified by CSS3. FF and IE are doing it right.

BerndGabriel avatar Nov 18 '15 19:11 BerndGabriel