Template:Background color/testcases

From Wikipedia, the free encyclopedia


{{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>