width-height-ruby.mjs (3767B)
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 `width & height on ruby element` test cases. 6 export default [ 7 { 8 info: "width is inactive on ruby element", 9 property: "width", 10 tagName: "ruby", 11 rules: ["ruby { width: 10px; }"], 12 isActive: false, 13 }, 14 { 15 info: "min-width is inactive on ruby element", 16 property: "min-width", 17 tagName: "ruby", 18 rules: ["ruby { min-width: 10px; }"], 19 isActive: false, 20 }, 21 { 22 info: "max-width is inactive on ruby element", 23 property: "max-width", 24 tagName: "ruby", 25 rules: ["ruby { max-width: 10px; }"], 26 isActive: false, 27 }, 28 { 29 info: "height is inactive on ruby element", 30 property: "height", 31 tagName: "ruby", 32 rules: ["ruby { height: 10px; }"], 33 isActive: false, 34 }, 35 { 36 info: "min-height is inactive on ruby element", 37 property: "min-height", 38 tagName: "ruby", 39 rules: ["ruby { min-height: 10px; }"], 40 isActive: false, 41 }, 42 { 43 info: "max-height is inactive on ruby element", 44 property: "max-height", 45 tagName: "ruby", 46 rules: ["ruby { max-height: 10px; }"], 47 isActive: false, 48 }, 49 { 50 info: "width is active on div element", 51 property: "width", 52 tagName: "div", 53 rules: ["div { width: 10px; }"], 54 isActive: true, 55 }, 56 { 57 info: "min-width is active on div element", 58 property: "min-width", 59 tagName: "div", 60 rules: ["div { min-width: 10px; }"], 61 isActive: true, 62 }, 63 { 64 info: "max-width is active on div element", 65 property: "max-width", 66 tagName: "div", 67 rules: ["div { max-width: 10px; }"], 68 isActive: true, 69 }, 70 { 71 info: "height is active on div element", 72 property: "height", 73 tagName: "div", 74 rules: ["div { height: 10px; }"], 75 isActive: true, 76 }, 77 { 78 info: "min-height is active on div element", 79 property: "min-height", 80 tagName: "div", 81 rules: ["div { min-height: 10px; }"], 82 isActive: true, 83 }, 84 { 85 info: "max-height is active on div element", 86 property: "max-height", 87 tagName: "div", 88 rules: ["div { max-height: 10px; }"], 89 isActive: true, 90 }, 91 { 92 info: "width is inactive on div element with display ruby", 93 property: "width", 94 tagName: "div", 95 rules: ["div { width: 10px; display: ruby;}"], 96 isActive: false, 97 }, 98 { 99 info: "height is inactive on div element with display ruby", 100 property: "height", 101 tagName: "div", 102 rules: ["div { height: 10px; display: ruby;}"], 103 isActive: false, 104 }, 105 { 106 info: "width is active on ruby element with display block", 107 property: "width", 108 tagName: "ruby", 109 rules: ["ruby { width: 10px; display: block;}"], 110 isActive: true, 111 }, 112 { 113 info: "height is active on ruby element with display block", 114 property: "height", 115 tagName: "ruby", 116 rules: ["ruby { height: 10px; display: block;}"], 117 isActive: true, 118 }, 119 { 120 info: "width is inactive on ruby-text element", 121 property: "width", 122 tagName: "rt", 123 rules: ["rt { width: 10px;}"], 124 isActive: false, 125 }, 126 { 127 info: "height is inactive on ruby-text element", 128 property: "height", 129 tagName: "rt", 130 rules: ["rt { height: 10px;}"], 131 isActive: false, 132 }, 133 { 134 info: "width is inactive on div elements with display ruby-text", 135 property: "width", 136 tagName: "div", 137 rules: ["div { width: 10px; display: ruby-text;}"], 138 isActive: false, 139 }, 140 { 141 info: "height is inactive on div elements with display ruby-text", 142 property: "height", 143 tagName: "div", 144 rules: ["div { height: 10px; display: ruby-text;}"], 145 isActive: false, 146 }, 147 ];