-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Expand file tree
/
Copy pathvalidator-amp-story-player.protoascii
More file actions
118 lines (117 loc) · 3.3 KB
/
validator-amp-story-player.protoascii
File metadata and controls
118 lines (117 loc) · 3.3 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#
# Copyright 2020 The AMP HTML Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the license.
#
tags: { # amp-story-player
html_format: AMP
tag_name: "SCRIPT"
extension_spec: {
name: "amp-story-player"
version: "0.1"
version: "latest"
}
attr_lists: "common-extension-attrs"
spec_url: "https://amp.dev/documentation/components/amp-story-player/"
}
tags: { # <amp-story-player>
html_format: AMP
tag_name: "AMP-STORY-PLAYER"
requires_extension: "amp-story-player"
descendant_tag_list: "amp-story-player-allowed-descendants"
amp_layout: {
supported_layouts: FILL
supported_layouts: FIXED
supported_layouts: FIXED_HEIGHT
supported_layouts: FLEX_ITEM
supported_layouts: RESPONSIVE
supported_layouts: INTRINSIC
}
spec_url: "https://amp.dev/documentation/components/amp-story-player/"
}
descendant_tag_list {
name: "amp-story-player-allowed-descendants"
tag: "A"
tag: "SPAN"
tag: "I-AMPHTML-SIZER" # Only allowed when document is transformed AMP
tag: "IMG" # Only allowed when document is transformed AMP
}
tags: {
html_format: AMP
enabled_by: "transformed"
tag_name: "IMG"
spec_name: "img-i-amphtml-intrinsic-sizer-amp-story-player"
mandatory_parent: "I-AMPHTML-SIZER-INTRINSIC"
mandatory_ancestor: "AMP-STORY-PLAYER"
attrs: {
name: "alt"
value: ""
mandatory: true
}
attrs: {
name: "aria-hidden"
value: "true"
mandatory: true
}
attrs: {
name: "class"
value: "i-amphtml-intrinsic-sizer"
mandatory: true
}
attrs: {
name: "role"
value: "presentation"
mandatory: true
}
attrs: {
name: "src"
value_regex: "data:image\\/svg\\+xml;charset=utf-8,\\s*<svg height=\"\\d+(\\.\\d+)?\" width=\"\\d+(\\.\\d+)?\" xmlns=\"http:\\/\\/www\\.w3\\.org\\/2000\\/svg\" version=\"1\\.1\"\\/>|data:image\\/svg\\+xml;charset=utf-8,\\s*<svg height='\\d+(\\.\\d+)?\' width='\\d+(\\.\\d+)?\' xmlns='http:\\/\\/www\\.w3\\.org\\/2000\\/svg' version='1\\.1'\\/>|data:image\\/svg\\+xml;base64,[a-zA-Z0-9+\\/=]+"
mandatory: true
}
spec_url: "https://amp.dev/documentation/components/amp-story-player/"
}
tags: {
html_format: AMP
tag_name: "IMG"
spec_name: "amp-story-player > img"
mandatory_parent: "A"
mandatory_ancestor: "AMP-STORY-PLAYER"
attrs: { name: "alt" }
attrs: { name: "attribution" }
attrs: {
name: "data-amp-story-player-poster-img"
mandatory: true
value: ""
dispatch_key: NAME_VALUE_DISPATCH
}
attrs: {
name: "decoding"
value: "async"
}
attrs: {
name: "height"
value_regex: "[0-9]+"
}
attrs: {
name: "loading"
mandatory: true
value: "lazy"
}
attrs: { name: "sizes" }
attrs: {
name: "width"
value_regex: "[0-9]+"
}
attr_lists: "mandatory-src-or-srcset"
spec_url: "https://amp.dev/documentation/components/amp-story-player/"
}