blob: 6be198bfbf86979be74c0bc2d6ed67cb447910fa [file] [log] [blame]
Tests that WebInspector.CSSStyleSheet methods work as expected.
Running: testSetText
=== Original stylesheet text: ===
body {
font-size: 12px;
foo: bar !
important /* !important property not recognized by WebCore */;
height: 100% !important;
colorz: "!important";
important:!important;
color: "badcolor" ! important /* good property with strange value */;
}
@media {
/* @media rule with an empty media list */
}
/* comment before selector */body.main1/* comment after selector */{/* comment */color: #F00BAA;zoo:moo /* not an !important unrecognized property */}/* comment */
body.main2{background: green /* value !important comment */ !important /* no semicolon, very !important */}
Running: testNewElementStyles
=== Matched rules for h1 after setText() ===
rule
h1: [user-agent]
['display':'block'] @[undefined-undefined]
['font-size':'2em'] @[undefined-undefined]
['margin-block-start':'0.67em'] @[undefined-undefined]
['margin-block-end':'0.67em'] @[undefined-undefined]
['margin-inline-start':'0px'] @[undefined-undefined]
['margin-inline-end':'0px'] @[undefined-undefined]
['font-weight':'bold'] @[undefined-undefined]
rule
h1: [regular]
['COLOR':'Red'] @[0:5-0:16]