3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
5 @import url(
"some-url-to-load-css.css") print;
6 @charset
"ISO-8859-15";
7 @namespace svg url(http://www.w3.org/
2000/svg);
9 font-family:
"Example Font";
10 src: url(
"http://www.example.com/fonts/example");
17 margin-right:
5cm; /* right pages only */
20 margin-top:
8cm; /* extra top margin on the first page */
25 border:
1px solid black;
27 /* -webkit-disabled-property: rgb(
1,
2,
3) */
29 input:-moz-placeholder { text-overflow: ellipsis; }
30 .class-name, p /* style all paragraphs as well */ {
32 -lol-cats:
"dogs" /* unexisting property */
35 @keyframes identifier {
36 0% { top:
0; left:
0; }
38 68%,
72% { left:
50px; }
39 100% { top:
100px; left:
100%; }
43 text-decoration: underline;
46 @media (max-width:
500px) {
48 /* font-family: Times New Roman; */
49 -webkit-border-radius:
10px;
50 font-family:
"Example Font"
58 return document
.querySelector("#styler").textContent
;
63 function onStyleSheetParsed(rules
)
65 for (var i
= 0; i
< rules
.length
; ++i
)
66 InspectorTest
.addObject(rules
[i
]);
67 InspectorTest
.completeTest();
70 function onStyleFetched(result
)
72 var parser
= new WebInspector
.CSSParser();
73 parser
.parse(result
.value
, onStyleSheetParsed
);
76 InspectorTest
.evaluateInPage("getCSS()", onStyleFetched
);
83 <body onload=
"runTest()">
84 <p>The test verifies the CSS outline functionality.
</p>