BackColor="lightsteelblue"
Basic example, nothing is set except BackColor property. You should see rounded corners box.
Method="NoImages" BackColor="lightsteelblue" UnderlayColor="white"
UnderlayColor set, you should see anti-aliasing.
CornersToRound="top" BackColor="#C0FFC0"
Only top corners should be rounded. Color is specified not with the name but with the hex-value string.
CornersToRound="tl br"
Top left and bottom right corner should be rounded.
CornersToRound="tl br" BorderColor="black"
BorderColor is set but neither BorderStyle nor BorderWidth - it should be computed automatically.
BorderStyle="dotted" BorderWidth="3px"
Interesting example - although BorderStyle and BorderWidth properties are ignored because Nifty Corners can't use them and BorderColor is not specified, some border should be created. Why? The existence of BorderStyle and BorderWidth properties (although they are ignored) indicates that some border should be rendered and so RoundedBox creates border using some default color (maybe gray but the color is not guaranteed).
Padding="5px 40px 30px"
You should see padding.
BackColor="transparent" or BackColor not set (behaves equally)
Inner area should be transparent.
OutputDir="nifty-output/"
If the output directory is specified, all JS and CSS files should be placed there. Trailing slash should be no problem (although path should be defined without a slash). If the directory does not exists, it should be created.
Back to tests homepage