Comments (5)
OK, to clarify, the issue is not the use of class
attributes, but specifying position: absolute
on an element within an <ix:nonNumeric>
tag. This is an issue whether it is done using style
attributes or CSS classes.
The viewer doesn't currently support this, as it wraps the <ix:nonNumeric>
tag with an additional element, and applies highlighting/borders to that. Specifying position: absolute
takes the enclosed element out of the flow of HTML elements, and so the rendered wrapper element is not actually wrapping anything.
This can be fixed within the document by placing the <ix:nonNumeric>
element within the absolutely positioned element, and using <ix:continuation>
if the tag spans multiple such elements.
I suspect this will be very hard to fix reliably within the viewer, as it would require detecting an separately such absolutely positioned elements.
from ixbrl-viewer.
yes, it seems to be an issue in Preview (javascript) and it is a valid HTML. The workaround will blow up the HTML unnecessary. From my perspective it should be fixed in javascript, right ?
from ixbrl-viewer.
Hi,
first of all I would like to thanks everybody for the subject in this topic, because it was very useful to find at least a workaround.
I was dealing with the same issue and using position:relative in the html code let to obtain highlight in the iXBRL preview. Unfortunately, introducing the relative position may affect the correct view of the page created by the html, i.e. words in relative position move around and the readibilty of the text is reduced. So I am forced to assign the position:relative only to a word or two in order to minimize the loss of readibility.
Do you find any new suggestion to solve this issue?
Kind regards,
Andrea
from ixbrl-viewer.
Hi,
Issue #107 has been fixed.
But still no progress on this...
Regards,
from ixbrl-viewer.
Edited the summary to more accurately describe the issue.
The reliance on absolutely position div elements to layout normal paragraphs of text seems very undesirable. As well as preventing correct highlighting of the iXBRL tags, it also interferes text selection behaviour in the browser.
from ixbrl-viewer.
Related Issues (20)
- Exclude sections from untagged highlighting HOT 1
- Run CI tests against Python 3.12.0 release candidate
- [BUG] Maximum call stack size exceeded HOT 1
- [REQUEST] - Add a "viewer" url parameter HOT 3
- [REQUEST] Deep link to HTML elements
- [REQUEST] Switch to using Intl.DisplayNames class for language names
- [BUG] The denominator of a complex unit is not displayed in the fact properties
- [REQUEST] For UTR units, display the unit's name rather than unit's qname in Fact properties HOT 4
- Run mypy in CI
- [BUG] Invalid enum value throws error
- [BUG] Invalid Viewer URL Doesn't Raise an Error
- [BUG] Handle string values in enum facts HOT 3
- [BUG] Table Style : Position relative is added automatically HOT 4
- [BUG]Fact properties are not getting loaded in the latest version HOT 3
- [BUG] "Concealed fact" warning used inappropriately
- [BUG] Inline Rendering Issue - Incorrect period shown HOT 4
- [REQUEST] Don't mark hidden facts as hidden if they have a "style hack" link
- ixbrl-viewer multiple POST thinks its a document set HOT 13
- [BUG] iXBRLViewerPlugin: Build iXBRL with EFRAG Sample XBRL file thanks to iXBRLViewerPlugin plugin fails HOT 4
- Add Creation Software Name to UI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ixbrl-viewer.