Pixate / pixate-freestyle-android

Pixate Freestyle for Android
Apache License 2.0
254 stars 55 forks source link

Lacking full border support #15

Open Shalom opened 10 years ago

Shalom commented 10 years ago

#myView { background-color: #F4F4F4; border-top: 2px solid #ff0000; } Will work, but will generate a full border.

#myView { background-color: #F4F4F4; border-bottom: 2px solid #ff0000; } Doesn't work at all.

The issue is at PXStylerContext line 404. Freestyle is only looking into the top values and then generates a rectangular border.

As a workaround, one can use gradient background with hard stops. For example, drawing a yellow background with a blue bottom line: background-color: linear-gradient(yellow 98%, blue 99%);