Lionel Barth wrote:
> 
> The solution is not that easy. The border-color is black whatever color
> I ask.
> 
> What about border-top, border-left, border-right or border-bottom ?

Sorry, my answer was not accurate enough.

Instead of specifying:
---
border, 1 solid red
---

You need to specify:
---
border-width,1
border-style,solid
border-top-color,red
border-left-color,red
border-bottom-color,red
border-right-color,red
---

border-color is the only border property for which XXE supports
different values for the different sides.

Real world, working, example:
---
@namespace "http://www.pixware.fr/schema/order";;

orderedProducts:before {
    display: table-row;
    content: row(cell("QUANTITY"),
                 cell("REFERENCE"),
                 cell("DESIGNATION"),
                 cell(content("PRICE\A", attr(currency))),
                 font-weight, bold,
                 color, white,
                 background-color, #0000A0,
                 border-width, 1,
                 border-style, solid,
                 border-top-color, gray,
                 border-bottom-color, gray,
                 border-right-color, gray,
                 border-left-color, gray);
}

orderedProducts {
    display: table;
    border: 1 solid gray;
    text-align: center;
    margin-top: 1.33ex;
}

orderedProduct {
    display: table-row;
}

...

---

Reply via email to