On 21.07.14 14:59, Boris Zbarsky wrote:
On 7/21/14, 8:36 AM, Markus Stange wrote:
On 21.07.14 13:33, Yonggang Luo wrote:
I am trying to remove the default style for tag <window />
but failed to setting the radius.

Setting a border radius on the root element is not supported.

In XUL, right?  Works fine in HTML.

Oops, I was forgetting about borders. border-radius works for getting rounded borders on root elements, but it does not work for clipping backgrounds to a rounded rect. In that sense it seems to work identically in XUL and in HTML.

Here's what I tested with:

data:text/html,<html style="background:red;border:1px solid black;border-radius:20px">

open('data:application/vnd.mozilla.xul+xml,<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; width="400" height="200" style="background:red;border:1px solid black;border-radius:20px"/>', '', 'chrome')

-Markus

_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to