summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/chrome/inactive-property-helper/width-height-ruby.mjs
blob: 0dda222e0b9aab0b169b28257c003223beb39221 (plain)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// InactivePropertyHelper `width & height on ruby element` test cases.
export default [
  {
    info: "width is inactive on ruby element",
    property: "width",
    tagName: "ruby",
    rules: ["ruby { width: 10px; }"],
    isActive: false,
  },
  {
    info: "min-width is inactive on ruby element",
    property: "min-width",
    tagName: "ruby",
    rules: ["ruby { min-width: 10px; }"],
    isActive: false,
  },
  {
    info: "max-width is inactive on ruby element",
    property: "max-width",
    tagName: "ruby",
    rules: ["ruby { max-width: 10px; }"],
    isActive: false,
  },
  {
    info: "height is inactive on ruby element",
    property: "height",
    tagName: "ruby",
    rules: ["ruby { height: 10px; }"],
    isActive: false,
  },
  {
    info: "min-height is inactive on ruby element",
    property: "min-height",
    tagName: "ruby",
    rules: ["ruby { min-height: 10px; }"],
    isActive: false,
  },
  {
    info: "max-height is inactive on ruby element",
    property: "max-height",
    tagName: "ruby",
    rules: ["ruby { max-height: 10px; }"],
    isActive: false,
  },
  {
    info: "width is active on div element",
    property: "width",
    tagName: "div",
    rules: ["div { width: 10px; }"],
    isActive: true,
  },
  {
    info: "min-width is active on div element",
    property: "min-width",
    tagName: "div",
    rules: ["div { min-width: 10px; }"],
    isActive: true,
  },
  {
    info: "max-width is active on div element",
    property: "max-width",
    tagName: "div",
    rules: ["div { max-width: 10px; }"],
    isActive: true,
  },
  {
    info: "height is active on div element",
    property: "height",
    tagName: "div",
    rules: ["div { height: 10px; }"],
    isActive: true,
  },
  {
    info: "min-height is active on div element",
    property: "min-height",
    tagName: "div",
    rules: ["div { min-height: 10px; }"],
    isActive: true,
  },
  {
    info: "max-height is active on div element",
    property: "max-height",
    tagName: "div",
    rules: ["div { max-height: 10px; }"],
    isActive: true,
  },
  {
    info: "width is inactive on div element with display ruby",
    property: "width",
    tagName: "div",
    rules: ["div { width: 10px; display: ruby;}"],
    isActive: false,
  },
  {
    info: "height is inactive on div element with display ruby",
    property: "height",
    tagName: "div",
    rules: ["div { height: 10px; display: ruby;}"],
    isActive: false,
  },
  {
    info: "width is active on ruby element with display block",
    property: "width",
    tagName: "ruby",
    rules: ["ruby { width: 10px; display: block;}"],
    isActive: true,
  },
  {
    info: "height is active on ruby element with display block",
    property: "height",
    tagName: "ruby",
    rules: ["ruby { height: 10px; display: block;}"],
    isActive: true,
  },
  {
    info: "width is inactive on ruby-text element",
    property: "width",
    tagName: "rt",
    rules: ["rt { width: 10px;}"],
    isActive: false,
  },
  {
    info: "height is inactive on ruby-text element",
    property: "height",
    tagName: "rt",
    rules: ["rt { height: 10px;}"],
    isActive: false,
  },
  {
    info: "width is inactive on div elements with display ruby-text",
    property: "width",
    tagName: "div",
    rules: ["div { width: 10px; display: ruby-text;}"],
    isActive: false,
  },
  {
    info: "height is inactive on div elements with display ruby-text",
    property: "height",
    tagName: "div",
    rules: ["div { height: 10px; display: ruby-text;}"],
    isActive: false,
  },
];