Jump to content

Template:Background color/testcases

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Crissov (talk | contribs) at 12:32, 16 October 2023 (explain expectations better, add more tests). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
{{Background color|#00FF00|should be lime}}

{{Background color}}

should be lime

{{Background color/sandbox}}

should be lime

{{Background color|green|should be green}}

{{Background color}}

should be green

{{Background color/sandbox}}

should be green

{{Background color|purplish|should fall back to default}}

{{Background color}}

should fall back to default

{{Background color/sandbox}}

should fall back to default

{{Background color|rgb(100% 100% 0%)|should be yellow}}

{{Background color}}

should be yellow

{{Background color/sandbox}}

should be yellow

{{Background color|lime|should span the full width|element=div}}

{{Background color}}

should span the full width

{{Background color/sandbox}}

should span the full width
{{Background color|lime|should have inner padding and outer margins|element=p}}

{{Background color}}

should have inner padding and outer margins

{{Background color/sandbox}}

should have inner padding and outer margins

{{Background color|red|should fail|element=test}}

{{Background color}}

should fail

{{Background color/sandbox}}

<test style="background-color: red">should fail</test>