~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/prism/tests/languages/markup!+css/css_inclusion.test

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<style type="text/css">
 
2
foo {
 
3
        bar: baz;
 
4
}
 
5
</style>
 
6
 
 
7
<foo style="bar:baz;">
 
8
 
 
9
----------------------------------------------------
 
10
 
 
11
[
 
12
        ["tag", [
 
13
                ["tag", [
 
14
                        ["punctuation", "<"],
 
15
                        "style"
 
16
                ]],
 
17
                ["attr-name", [
 
18
                        "type"
 
19
                ]],
 
20
                ["attr-value", [
 
21
                        ["punctuation", "="],
 
22
                        ["punctuation", "\""],
 
23
                        "text/css",
 
24
                        ["punctuation", "\""]
 
25
                ]],
 
26
                ["punctuation", ">"]
 
27
        ]],
 
28
        ["style", [
 
29
                ["selector", "foo"],
 
30
                ["punctuation", "{"],
 
31
                ["property", "bar"],
 
32
                ["punctuation", ":"],
 
33
                " baz",
 
34
                ["punctuation", ";"],
 
35
                ["punctuation", "}"]
 
36
        ]],
 
37
        ["tag", [
 
38
                ["tag", [
 
39
                        ["punctuation", "</"],
 
40
                        "style"
 
41
                ]],
 
42
                ["punctuation", ">"]
 
43
        ]],
 
44
 
 
45
        ["tag", [
 
46
                ["tag", [
 
47
                        ["punctuation", "<"],
 
48
                        "foo"
 
49
                ]],
 
50
                ["style-attr", [
 
51
                        ["attr-name", [
 
52
                                ["attr-name", [
 
53
                                        "style"
 
54
                                ]]
 
55
                        ]],
 
56
                        ["punctuation", "=\""],
 
57
                        ["attr-value", [
 
58
                                ["property", "bar"],
 
59
                                ["punctuation", ":"],
 
60
                                "baz",
 
61
                                ["punctuation", ";"]
 
62
                        ]],
 
63
                        ["punctuation", "\""]
 
64
                ]],
 
65
                ["punctuation", ">"]
 
66
        ]]
 
67
]
 
68
 
 
69
----------------------------------------------------
 
70
 
 
71
Checks for CSS usage inside Markup, using <style> tag and style attribute.
 
 
b'\\ No newline at end of file'