Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Div tree for subtitle #379

Open
ayu7377 opened this issue Jan 30, 2024 · 0 comments
Open

Div tree for subtitle #379

ayu7377 opened this issue Jan 30, 2024 · 0 comments

Comments

@ayu7377
Copy link

ayu7377 commented Jan 30, 2024

Using subtitle_event_data with one render_div, call to imsc.renderHTML(subtitle_event_data, render_div) makes these kind of div tree.
image

Through the codeflow of imsc_library, what I understood is it is creating structure under given render_div is like {global, region, body, div, p, span}.
In this tree, parent div having position: relative, and its child div having position: absolute is not inheriting and influencing p and span tag, because there are two div with no use (it seems no use, correct me if I'm wrong).
And as it is not inheriting, in one webpage, I faced the issue, my render_div was there but not visible on the screen. If I manually removed these two div "div style="margin: 0px; visibility: visible;", then subtitle were visible.

Can someone please explain what is the use of these div style="margin: 0px; visibility: visible;", what is the meaning of this strcyre {global, region, body, div, p, span}, and is it okay if I manually do not append these div style="margin: 0px; visibility: visible;".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant