On 10/17/2012 05:28 PM, Boris Goldowsky wrote: > > On Oct 12, 2012, at 2:46 PM, Hussein Shafie wrote: > >> On 10/12/2012 07:57 PM, Boris Goldowsky wrote: >>> I'm having trouble with image display in certain circumstances. Try this: >>> >>> Install DTBook configuration >>> Create new DTBook document >>> Insert an<img> element in the body, and set it to point to an existing >>> image in your filesystem. The image should display fine in the editor. >>> Wrap the<img> in an inline element, such as<a> or<cite>. >>> Now the image no longer displays properly (you may have to save and re-open >>> the file to see the breakage). >> >> Is this a regression caused by changes in XXE? > > It does seem to be a regression, though not appearing for the first time in > version 5.4 (I see the same thing in 5.2.1). I have an old copy of 4.9.1 > hanging around and I do not see the same problem there -- in the older > version, the images displayed with content:image-viewport always seem to > display properly. In the newer version, the images sometimes display as a > 1-pixel-wide bar, particularly when they are in a block element that is > wrapped in an inline element. >
* Blocks inside inlines have never been supported. If it worked for you, then it was pure luck. * New releases of XXE consistently force all inline elements to be as narrow as possible. In some cases, this indeed gives 1 pixel wide images. However, this behavior does not seem to pose problems to any of our stock configurations: XHTML, DITA, DocBook. * There are several CSS properties which may be used to prevent an inline, inline-block or inline-table element from becoming too narrow. - white-space:nowrap http://www.w3.org/TR/CSS2/text.html#propdef-white-space - min-width http://www.w3.org/TR/CSS2/visudet.html#propdef-min-width * However, we recommend to simplify your CSS rather than use any of the above workaround. -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

