Giter Site home page Giter Site logo

Comments (5)

paulwarren-wk avatar paulwarren-wk commented on July 18, 2024

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.

Nachtinho avatar Nachtinho commented on July 18, 2024

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.

beltistos87 avatar beltistos87 commented on July 18, 2024

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.

Nachtinho avatar Nachtinho commented on July 18, 2024

Hi,

Issue #107 has been fixed.
But still no progress on this...

Regards,

from ixbrl-viewer.

paulwarren-wk avatar paulwarren-wk commented on July 18, 2024

Edited the summary to more accurately describe the issue.

Screenshot:
image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.