Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .stylelintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
"color-no-invalid-hex": true,
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-redundant-longhand-properties": true,
"declaration-property-value-disallowed-list": {
"float": ["inline-start", "inline-end"]
},
"length-zero-no-unit": [true, {
"ignore": ["custom-properties"]
}],
Expand Down
8 changes: 1 addition & 7 deletions gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString());

const ENV_TARGETS = [
"last 2 versions",
"Chrome >= 110",
"Chrome >= 118",
"Firefox ESR",
"Safari >= 16.4",
"Node >= 20",
Expand Down Expand Up @@ -1297,10 +1297,6 @@ function createDefaultPrefsFile() {
return createStringSource(defaultFileName, buf.join("\n"));
}

function replaceMozcentralCSS() {
return replace(/var\(--(inline-(?:start|end))\)/g, "$1");
}

gulp.task(
"mozcentral",
gulp.series(
Expand Down Expand Up @@ -1376,7 +1372,6 @@ gulp.task(
autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG),
])
)
.pipe(replaceMozcentralCSS())
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),

preprocessCSS("web/viewer-geckoview.css", gvDefines)
Expand All @@ -1386,7 +1381,6 @@ gulp.task(
autoprefixer(MOZCENTRAL_AUTOPREFIXER_CONFIG),
])
)
.pipe(replaceMozcentralCSS())
.pipe(gulp.dest(MOZCENTRAL_CONTENT_DIR + "web")),

gulp
Expand Down
2 changes: 1 addition & 1 deletion web/tree.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
}

position: relative;
float: var(--inline-start);
float: inline-start;
height: 0;
width: 0;
color: rgb(255 255 255 / 0.5);
Expand Down
10 changes: 1 addition & 9 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@

:root {
--dir-factor: 1;
/*#if !MOZCENTRAL*/
--inline-start: left;
--inline-end: right;
/*#endif*/

--sidebar-width: 200px;
--sidebar-transition-duration: 200ms;
Expand Down Expand Up @@ -132,10 +128,6 @@

:root:dir(rtl) {
--dir-factor: -1;
/*#if !MOZCENTRAL*/
--inline-start: right;
--inline-end: left;
/*#endif*/
}

@media screen and (forced-colors: active) {
Expand Down Expand Up @@ -417,7 +409,7 @@ body {
}

.splitToolbarButtonSeparator {
float: var(--inline-start);
float: inline-start;
width: 0;
height: 62%;
border-left: 1px solid var(--separator-color);
Expand Down