Hello Hussein,

thanks for your answer. I'll make tests here and will let you know.

OTOH, sorry if I mislead you with the example, but indeed we also need it
like that. We do use two different images for checkboxes (for checked and
unchecked status) with no content (CSS XXE rule
content:image(URL_OF_IMAGE);); and we also use stuff that can have content
like a date.

I'll remove the rounded borders and will test. Thanks.



On Fri, Jun 26, 2015 at 5:59 AM, Hussein Shafie <huss...@xmlmind.com> wrote:

> On 06/25/2015 09:41 PM, Fabián Mandelbaum wrote:
>
>> Hello Hussein, thanks for your answer.
>>
>> The replaceable element can (and does, in our case) have content, for
>> example:
>>
>> <replaceable role="date">2015-06-24</replaceable>
>>
>> If I use the more "natural" CSS rule, "2015-06-24" will not be shown
>> anymore, and this is not what we expect. We expect the previous
>> behavior: Have the replaceable show its content AND convert it to a
>> block element with a background image, border, width, etc. (all
>> "natural" block elements CSS attributes).
>>
>>
> Then my first answer was completely incorrect. After seeing your CSS rule,
>
> ---
> /* This one works */
> replaceable[role=check][conformance='1']
> {
>      content: image(url(ge-icn-checkbox-checked.png));
> }
> ---
>
> I thought that <replaceable> had no content.
>
>
>
> I've reproduced the problem using DocBook mousebutton:
>
> ---
> mousebutton {
>     display: inline-block;
>     font-family: monospace;
>     font-weight: bold;
>     background: #fff url(icons/text.png) no-repeat top left;
>     border: 1px solid #000;
>     border-radius: 5px;
>     padding: 20px 5px 5px;
> }
> ---
>
> indeed  does not work. See attached does_not_work.png.
>
> However, after removing property "border-radius":
>
> ---
> mousebutton {
>     display: inline-block;
>     font-family: monospace;
>     font-weight: bold;
>     background: #fff url(icons/text.png) no-repeat top left;
>     border: 1px solid #000;
>     padding: 20px 5px 5px;
> }
> ---
>
> works as expected. See attached no_border_radius.png.
>
> Replacing property value "no-repeat" by "repeat" also works as expected:
>
> ---
> mousebutton {
>     display: inline-block;
>     font-family: monospace;
>     font-weight: bold;
>     background: #fff url(icons/text.png) repeat top left;
>     border: 1px solid #000;
>     border-radius: 5px;
>     padding: 20px 5px 5px;
> }
> ---
>
> See attached repeat.png.
>
> You obviously have uncovered a bug. We'll try to fix in the next release.
>
>
>
>


-- 
Fabián Mandelbaum
IS Engineer
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to