first-letter-pseudo-element.mjs (918B)
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-letter-pseudo-element` test cases. 6 7 // "content", 8 9 export default [ 10 { 11 info: "content is inactive on ::first-letter", 12 property: "content", 13 tagName: "div", 14 rules: ["div::first-letter { content: 'invalid'; }"], 15 isActive: false, 16 expectedMsgId: "inactive-css-first-letter-pseudo-element-not-supported", 17 }, 18 { 19 info: "color is active on ::first-letter", 20 property: "color", 21 tagName: "div", 22 rules: ["div::first-letter { color: green; }"], 23 isActive: true, 24 }, 25 { 26 info: "display is active on ::first-letter", 27 property: "display", 28 tagName: "div", 29 rules: ["div::first-letter { display: grid; }"], 30 isActive: true, 31 }, 32 ];