blob: 2d5e6516788f5949e107306f7cc93f9fe0bb4fb1 [file] [log] [blame]
This tests checks that the '-webkit-text' and 'text' keywords are parsed correctly in the 'background-clip' and '-webkit-background-clip' properties, and that 'background-clip' is parsed correctly in the 'background' shorthand.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS test("background-clip: -webkit-text", "background-clip") is "-webkit-text"
PASS test("background-clip: -webkit-text", "-webkit-background-clip") is null
PASS test("background-clip: content-box", "background-clip") is "content-box"
PASS test("background-clip: padding-box", "background-clip") is "padding-box"
PASS test("background-clip: border-box", "background-clip") is "border-box"
PASS test("background-clip: text", "background-clip") is null
PASS test("background-clip: text", "-webkit-background-clip") is null
PASS test("-webkit-background-clip: -webkit-text", "background-clip") is null
PASS test("-webkit-background-clip: -webkit-text", "-webkit-background-clip") is "-webkit-text"
PASS test("-webkit-background-clip: text", "background-clip") is null
PASS test("-webkit-background-clip: text", "-webkit-background-clip") is "text"
PASS test("background: url() padding-box", "-webkit-background-clip") is null
PASS test("-webkit-mask: url() ", "background-clip") is null
PASS test("background: url() ", "background-clip") is "initial"
PASS test("background: url() padding-box", "background-clip") is "padding-box"
PASS test("background: url() padding-box border-box", "background-clip") is "border-box"
PASS test("background: repeat content-box border-box url() ", "background-clip") is "border-box"
PASS test("background: padding-box blue content-box url() repeat scroll ", "background-clip") is "content-box"
PASS successfullyParsed is true
TEST COMPLETE