text-overflow.mjs (2467B)
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 `text-overflow` test cases. 6 export default [ 7 { 8 info: "text-overflow is inactive when overflow is not set", 9 property: "text-overflow", 10 tagName: "div", 11 rules: ["div { text-overflow: ellipsis; }"], 12 isActive: false, 13 }, 14 { 15 info: "text-overflow is active when overflow is set to hidden", 16 property: "text-overflow", 17 tagName: "div", 18 rules: ["div { text-overflow: ellipsis; overflow: hidden; }"], 19 isActive: true, 20 }, 21 { 22 info: "text-overflow is active when overflow is set to auto", 23 property: "text-overflow", 24 tagName: "div", 25 rules: ["div { text-overflow: ellipsis; overflow: auto; }"], 26 isActive: true, 27 }, 28 { 29 info: "text-overflow is active when overflow is set to scroll", 30 property: "text-overflow", 31 tagName: "div", 32 rules: ["div { text-overflow: ellipsis; overflow: scroll; }"], 33 isActive: true, 34 }, 35 { 36 info: "text-overflow is inactive when overflow is set to visible", 37 property: "text-overflow", 38 tagName: "div", 39 rules: ["div { text-overflow: ellipsis; overflow: visible; }"], 40 isActive: false, 41 }, 42 { 43 info: "text-overflow is active when overflow-x is set to hidden on horizontal writing mode", 44 property: "text-overflow", 45 tagName: "div", 46 rules: [ 47 "div { writing-mode: lr; text-overflow: ellipsis; overflow-x: hidden; }", 48 ], 49 isActive: true, 50 }, 51 { 52 info: "text-overflow is inactive when overflow-x is set to visible on horizontal writing mode", 53 property: "text-overflow", 54 tagName: "div", 55 rules: [ 56 "div { writing-mode: lr; text-overflow: ellipsis; overflow-x: visible; }", 57 ], 58 isActive: false, 59 }, 60 { 61 info: "text-overflow is active when overflow-y is set to hidden on vertical writing mode", 62 property: "text-overflow", 63 tagName: "div", 64 rules: [ 65 "div { writing-mode: vertical-lr; text-overflow: ellipsis; overflow-y: hidden; }", 66 ], 67 isActive: true, 68 }, 69 { 70 info: "text-overflow is inactive when overflow-y is set to visible on vertical writing mode", 71 property: "text-overflow", 72 tagName: "div", 73 rules: [ 74 "div { writing-mode: vertical-lr; text-overflow: ellipsis; overflow-y: visible; }", 75 ], 76 isActive: false, 77 }, 78 ];