Bug 1940196 - [devtools] Adapt browser_compatibility_css-property_issue.js for Safari update. r=devtools-reviewers,jdescottes a=test-only

Safari 18.2 added support for scrollbar-width and ruby-align,
so we need to use other properties to make the test green.
This commit is contained in:
Nicolas Chevobbe 2025-01-07 09:35:24 +00:00
parent 918836c733
commit a78699663d

View file

@ -13,13 +13,13 @@ const TEST_URI = `
<style>
body {
color: blue;
scrollbar-width: thin;
scrollbar-color: gold;
user-modify: read-only;
hyphenate-limit-chars: auto;
overflow-clip-box: padding-box;
}
div {
ruby-align: center;
overflow-anchor: auto;
}
</style>
<body>
@ -30,8 +30,8 @@ const TEST_URI = `
const TEST_DATA_SELECTED = [
{
type: COMPATIBILITY_ISSUE_TYPE.CSS_PROPERTY,
property: "scrollbar-width",
url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-width",
property: "scrollbar-color",
url: "https://developer.mozilla.org/docs/Web/CSS/scrollbar-color",
deprecated: false,
experimental: false,
},
@ -66,10 +66,10 @@ const TEST_DATA_ALL = [
...TEST_DATA_SELECTED,
{
type: COMPATIBILITY_ISSUE_TYPE.CSS_PROPERTY,
property: "ruby-align",
url: "https://developer.mozilla.org/docs/Web/CSS/ruby-align",
property: "overflow-anchor",
url: "https://developer.mozilla.org/docs/Web/CSS/overflow-anchor",
deprecated: false,
experimental: true,
experimental: false,
},
];