first-line-pseudo-element.mjs (1499B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 // InactivePropertyHelper `first-line-pseudo-element` test cases. 6 7 // "direction", 8 // "text-orientation", 9 // "writing-mode", 10 11 export default [ 12 { 13 info: "direction is inactive on ::first-line", 14 property: "direction", 15 tagName: "div", 16 rules: ["div::first-line { direction: rtl; }"], 17 isActive: false, 18 expectedMsgId: "inactive-css-first-line-pseudo-element-not-supported", 19 }, 20 { 21 info: "text-orientation is inactive on ::first-line", 22 property: "text-orientation", 23 tagName: "div", 24 rules: ["div::first-line { text-orientation: sideways; }"], 25 isActive: false, 26 expectedMsgId: "inactive-css-first-line-pseudo-element-not-supported", 27 }, 28 { 29 info: "writing-mode is inactive on ::first-line", 30 property: "writing-mode", 31 tagName: "div", 32 rules: ["div::first-line { writing-mode: vertical-rl; }"], 33 isActive: false, 34 expectedMsgId: "inactive-css-first-line-pseudo-element-not-supported", 35 }, 36 { 37 info: "color is active on ::first-line", 38 property: "color", 39 tagName: "div", 40 rules: ["div::first-line { color: green; }"], 41 isActive: true, 42 }, 43 { 44 info: "display is active on ::first-line", 45 property: "display", 46 tagName: "div", 47 rules: ["div::first-line { display: grid; }"], 48 isActive: true, 49 }, 50 ];