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).

Help please? :)

Thanks in advance.


On Wed, Jun 24, 2015 at 4:59 AM, Hussein Shafie <[email protected]> wrote:

> Fabián M. wrote:
>
>>
>> we've written a customization for one of our customers which works fine
>> on XXE5.9.0, XXE6.0.0 and XXE 6.1.0, but does not work as expected on
>> XXE6.2.0, neither on XXE6.3.0
>>
>> This particular piece of the whole customization is a simple CSS rule,
>> as follows:
>>
>>  >>> CSS EXCERPT BEGINS <<<
>>
>> replaceable[role=input],
>> replaceable[role=number],
>> replaceable[role=date],
>> literallayout[role=textarea],
>> itemizedlist[role=select],
>> itemizedlist[role=select-down]
>> {
>>      display: inline-block;
>>      width: 60px;
>>      height: 60px;
>>      border: 1px solid #000;
>>      border-radius: 5px;
>>      padding: 20px 5px 5px;
>> }
>>
>> /* This one works */
>> replaceable[role=check][conformance='1']
>> {
>>      content: image(url(ge-icn-checkbox-checked.png));
>> }
>>
>> /* But this, and the following ones (and similar) do not */
>> replaceable[role=input]
>> {
>>      background: #fff url(ge-icn-text-input.png) no-repeat top left;
>> }
>>
>> replaceable[role=number]
>> {
>>      background: #fff url(ge-icn-number-input.png) no-repeat top left;
>> }
>>
>> replaceable[role=date]
>> {
>>      background: #fff url(ge-icn-date.png) no-repeat top left;
>> }
>>
>>  >>> CSS EXCERPT ENDS <<<
>>
>> Starting with XXE 6.2 should we write the above CSS customizations in a
>> different way? I can include some screenshots if needed, or even the
>> full CSS file, or whatever may be needed to help you reproduce this
>> issue. Let me know, and thanks in advance for your help.
>>
>>
> I would say that it worked by chance in versions of XXE older than 6.2.
>
> Something like:
>
> replaceable[role=input]
> {
>     background: #fff url(ge-icn-text-input.png) no-repeat top left;
> }
>
> has no content, whether normal content, generated content or replaced
> content. (CSS properties "background" and "background-image" do not specify
> a content.)
>
> A more ``natural'' CSS rule would be:
>
> replaceable[role=input]
> {
>     content: url(ge-icn-text-input.png);
>     background-color: #fff;
> }
>
>
> --
> XMLmind XML Editor Support List
> [email protected]
> http://www.xmlmind.com/mailman/listinfo/xmleditor-support




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

Reply via email to