-
-
Notifications
You must be signed in to change notification settings - Fork 138
/
Copy path.markbot.yml
79 lines (73 loc) · 2.44 KB
/
.markbot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
repo: 'svg-line-drawing'
canvasCourse: 'web-dev-3'
inherit:
- naming-restrict-live
- git-2
- html
- css
html:
- path: 'index.html'
has:
- ['link[href*="Unica+One"]', 'The Google Font, `Unica One`, is missing']
- 'div.embed.embed-16by9'
- check: 'div.embed > div.embed-item'
message: 'It’s better to put the `.embed-item` class onto a `<div>` that surrounds the SVG, instead of on the SVG itself, because the SVG does weird things otherwise'
- 'svg.img-flex'
- 'svg > rect'
- 'svg > g > path'
- '#narwhal-body'
- '#narwhal-eye'
- '#rainbow-violet'
- '#rainbow-indigo'
- '#rainbow-blue'
- '#rainbow-green'
- '#rainbow-yellow'
- '#rainbow-orange'
- '#rainbow-red'
hasNot:
- check: 'svg.embed-item'
message: 'It’s better to put the `.embed-item` class onto a `<div>` that surrounds the SVG, instead of on the SVG itself, because the SVG does weird things otherwise'
search:
- 'Unicorns of the sea'
css:
- path: 'css/main.css'
has:
- ['#narwhal-body', ['stroke-dashoffset', 'stroke-dasharray']]
- ['#narwhal-eye', 'opacity']
- ['#rainbow-violet', ['stroke-dashoffset', 'stroke-dasharray']]
- ['#rainbow-indigo', ['stroke-dashoffset', 'stroke-dasharray']]
- ['#rainbow-blue', ['stroke-dashoffset', 'stroke-dasharray']]
- ['#rainbow-green', ['stroke-dashoffset', 'stroke-dasharray']]
- ['#rainbow-yellow', ['stroke-dashoffset', 'stroke-dasharray']]
- ['#rainbow-orange', ['stroke-dashoffset', 'stroke-dasharray']]
- ['#rainbow-red', ['stroke-dashoffset', 'stroke-dasharray']]
search:
- '@keyframes'
- 'animation'
- 'font\-family\: "Unica One"\, sans\-serif'
- path: 'css/modules.css'
locked: true
- path: 'css/grid.css'
locked: true
- path: 'css/type.css'
locked: true
screenshots:
- path: 'index.html'
label: 'Before'
sizes: [1440]
- path: 'index.html'
label: 'After'
sizes: [1440]
allowAnimations: true
before: |
on('#rainbow-violet', 'animationend', done);
functionality:
- path: 'index.html'
tests:
- |
let narwhal = $('#narwhal-body');
let oldStroke = css(narwhal).strokeDashoffset;
on(narwhal, 'animationend', () => {
if (css(narwhal).strokeDashoffset == oldStroke) return fail('The `stroke-dashoffset` of the narwhal don’t animate');
pass();
});