extra margins by empty elements

gloryman21
Posts: 10

extra margins by empty elements

Thu Mar 14, 2019 2:57 pm

Hello!
I'm using PDF CSS DITA (WYSIWYG) transformation.
Empty elements context, prereq, result and postreq add top and bottom extra margin.
How fix it? My css dosen't work.

Code: Select all

*[class~="task/prereq"]:empty {
    display: none !important;
 }
 *[class~="task/context"]:empty {
    display: none !important;
 }
 *[class~="task/result"]:empty {
    display: none !important;
 }
*[class~="task/postreq"]:empty {
    display: none !important;
 }
Dan
Posts: 345

Re: extra margins by empty elements

Fri Mar 15, 2019 12:21 pm

Hello,

Yes, this is a bug, i will record it.

The IDs are generating anchor elements that separate the adjacent margins of the siblings. For instance, the empty context element will generate an inline that inhibits the automatic collapse of the margins of the prereq (the element before) and steps (the element after):

Code: Select all

prereq
context(invisible, but has an ID, generates an invisible inline)
steps


As a workaround, remove the ID attributes from these empty elements, or extend your publishing template with XSLT to do this automatically.
https://www.oxygenxml.com/doc/versions/ ... sions.html

Many regards,
Dan
gloryman21
Posts: 10

Re: extra margins by empty elements

Fri Mar 15, 2019 1:01 pm

Thank You, Dan!
Costin
Posts: 505

Re: extra margins by empty elements

Mon Mar 18, 2019 5:01 pm

Hi,

I want to inform you that tomorrow we will make available a nightly build that includes the fix.
Please contact us again tomorrow on our support email (support@oxygenxml.com) and request access to the build, if you are willing to test.

Please note that the nightly build is meant for testing and evaluation purposes only, it should not be used for production work, as it is not an official stable release.
Also, you should keep it confidential and use it at your own discretion for the purpose of testing specifically the features / improvements in discussion.

Best Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest