summaryrefslogtreecommitdiffstats
path: root/devtools/server/tests/chrome/inactive-property-helper/first-line-pseudo-element.mjs
blob: 68948a16bc20d1c2e7c410543aa1f4b6427faf49 (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
/* 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 `first-line-pseudo-element` test cases.

// "direction",
// "text-orientation",
// "writing-mode",

export default [
  {
    info: "direction is inactive on ::first-line",
    property: "direction",
    tagName: "div",
    rules: ["div::first-line { direction: rtl; }"],
    isActive: false,
    expectedMsgId: "inactive-css-first-line-pseudo-element-not-supported",
  },
  {
    info: "text-orientation is inactive on ::first-line",
    property: "text-orientation",
    tagName: "div",
    rules: ["div::first-line { text-orientation: sideways; }"],
    isActive: false,
    expectedMsgId: "inactive-css-first-line-pseudo-element-not-supported",
  },
  {
    info: "writing-mode is inactive on ::first-line",
    property: "writing-mode",
    tagName: "div",
    rules: ["div::first-line { writing-mode: vertical-rl; }"],
    isActive: false,
    expectedMsgId: "inactive-css-first-line-pseudo-element-not-supported",
  },
  {
    info: "color is active on ::first-line",
    property: "color",
    tagName: "div",
    rules: ["div::first-line { color: green; }"],
    isActive: true,
  },
  {
    info: "display is active on ::first-line",
    property: "display",
    tagName: "div",
    rules: ["div::first-line { display: grid; }"],
    isActive: true,
  },
];