mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-06-22 16:05:56 +02:00
Merge pull request #20645 from Snuffleupagus/Chrome-118
[api-minor] Update the minimum supported Google Chrome version to 118
This commit is contained in:
commit
4f40a5427c
@ -13,9 +13,6 @@
|
|||||||
"color-no-invalid-hex": true,
|
"color-no-invalid-hex": true,
|
||||||
"declaration-block-no-duplicate-properties": true,
|
"declaration-block-no-duplicate-properties": true,
|
||||||
"declaration-block-no-redundant-longhand-properties": true,
|
"declaration-block-no-redundant-longhand-properties": true,
|
||||||
"declaration-property-value-disallowed-list": {
|
|
||||||
"float": ["inline-start", "inline-end"]
|
|
||||||
},
|
|
||||||
"length-zero-no-unit": [true, {
|
"length-zero-no-unit": [true, {
|
||||||
"ignore": ["custom-properties"]
|
"ignore": ["custom-properties"]
|
||||||
}],
|
}],
|
||||||
|
|||||||
@ -82,7 +82,7 @@ const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString());
|
|||||||
|
|
||||||
const ENV_TARGETS = [
|
const ENV_TARGETS = [
|
||||||
"last 2 versions",
|
"last 2 versions",
|
||||||
"Chrome >= 110",
|
"Chrome >= 118",
|
||||||
"Firefox ESR",
|
"Firefox ESR",
|
||||||
"Safari >= 16.4",
|
"Safari >= 16.4",
|
||||||
"Node >= 20",
|
"Node >= 20",
|
||||||
@ -1297,10 +1297,6 @@ function createDefaultPrefsFile() {
|
|||||||
return createStringSource(defaultFileName, buf.join("\n"));
|
return createStringSource(defaultFileName, buf.join("\n"));
|
||||||
}
|
}
|
||||||
|
|
||||||
function replaceMozcentralCSS() {
|
|
||||||
return replace(/var\(--(inline-(?:start|end))\)/g, "$1");
|
|
||||||
}
|
|
||||||
|
|
||||||
gulp.task(
|
gulp.task(
|
||||||
"mozcentral",
|
"mozcentral",
|
||||||
gulp.series(
|
gulp.series(
|
||||||
@ -1376,7 +1372,6 @@ gulp.task(
|
|||||||
autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG),
|
autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG),
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
.pipe(replaceMozcentralCSS())
|
|
||||||
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
||||||
|
|
||||||
preprocessCSS("web/viewer-geckoview.css", gvDefines)
|
preprocessCSS("web/viewer-geckoview.css", gvDefines)
|
||||||
@ -1386,7 +1381,6 @@ gulp.task(
|
|||||||
autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG),
|
autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG),
|
||||||
])
|
])
|
||||||
)
|
)
|
||||||
.pipe(replaceMozcentralCSS())
|
|
||||||
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),
|
||||||
|
|
||||||
gulp
|
gulp
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
position: relative;
|
position: relative;
|
||||||
float: var(--inline-start);
|
float: inline-start;
|
||||||
height: 0;
|
height: 0;
|
||||||
width: 0;
|
width: 0;
|
||||||
color: rgb(255 255 255 / 0.5);
|
color: rgb(255 255 255 / 0.5);
|
||||||
|
|||||||
@ -17,10 +17,6 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--dir-factor: 1;
|
--dir-factor: 1;
|
||||||
/*#if !MOZCENTRAL*/
|
|
||||||
--inline-start: left;
|
|
||||||
--inline-end: right;
|
|
||||||
/*#endif*/
|
|
||||||
|
|
||||||
--sidebar-width: 200px;
|
--sidebar-width: 200px;
|
||||||
--sidebar-transition-duration: 200ms;
|
--sidebar-transition-duration: 200ms;
|
||||||
@ -132,10 +128,6 @@
|
|||||||
|
|
||||||
:root:dir(rtl) {
|
:root:dir(rtl) {
|
||||||
--dir-factor: -1;
|
--dir-factor: -1;
|
||||||
/*#if !MOZCENTRAL*/
|
|
||||||
--inline-start: right;
|
|
||||||
--inline-end: left;
|
|
||||||
/*#endif*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (forced-colors: active) {
|
@media screen and (forced-colors: active) {
|
||||||
@ -417,7 +409,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.splitToolbarButtonSeparator {
|
.splitToolbarButtonSeparator {
|
||||||
float: var(--inline-start);
|
float: inline-start;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 62%;
|
height: 62%;
|
||||||
border-left: 1px solid var(--separator-color);
|
border-left: 1px solid var(--separator-color);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user