Arelle / ixbrl-viewer

The Arelle iXBRL Viewer allows Inline XBRL (or iXBRL) reports to be viewed interactively in a web browser. The viewer allows users to access the tagged XBRL data embedded in an iXBRL report.
Other
90 stars 55 forks source link

[BUG] Table Style : Position relative is added automatically #632

Open GauthamDT opened 4 months ago

GauthamDT commented 4 months ago

What happened?

The issue is for EU ESEF packages

In the ixbrl viewer, we found that position relative table style is automatically added by the viewer.

This is added to the pages which has text block tags with td tr tags in it.

Please find the attached image for your analysis.

Could you please share your feedback on this please. image

Version

Latest

With which browsers are you experiencing the bug?

Firefox, Chrome, Safari, Microsoft Edge

Documents

No response

Screenshots

image

paulwarren-wk commented 4 months ago

This sounds like #369

Please could you provide a sample document that demonstrates the problem? It's hard to understand from the screenshot what problem this is actually created.

GauthamDT commented 4 months ago

Please find the test package. This is tested in 2.16.1 version 213800ORZ521W585SY02-2024-02-29-en.zip

GauthamDT commented 4 months ago

In the latest version this issue is present Screenshot 2024-02-22 133726

paulwarren-wk commented 4 months ago

So the issue here is that all of the actual content in the table is in absolutely position divs, positioned relative to the page container. The table itself is positioned off the bottom of the page, and by adding position: relative, all the content is now relative to the table rather than the page.

The reason we add position: relative is so that we can position the table export handle at the top left of the table. Even if we could somehow fix this issue, the table export handles would be in the wrong place as the actual <table> element is off the bottom of the page.