replaced-element-properties.mjs (1035B)
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 `object-fit` and `object-position` test cases. 6 export default [ 7 { 8 info: "object-fit is inactive on inline element", 9 property: "object-fit", 10 tagName: "span", 11 rules: ["span { object-fit: cover; }"], 12 isActive: false, 13 }, 14 { 15 info: "object-fit is active on replaced element", 16 property: "object-fit", 17 tagName: "img", 18 rules: ["img { object-fit: cover; }"], 19 isActive: true, 20 }, 21 { 22 info: "object-position is inactive on inline element", 23 property: "object-position", 24 tagName: "span", 25 rules: ["span { object-position: 50% 50%; }"], 26 isActive: false, 27 }, 28 { 29 info: "object-position is active on replaced element", 30 property: "object-position", 31 tagName: "img", 32 rules: ["img { object-position: 50% 50%; }"], 33 isActive: true, 34 }, 35 ];