Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build the web/viewer.css file used in the development viewer (i.e. gulp server) #14675

Merged
merged 2 commits into from
Mar 16, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

  • Build the web/viewer.css file used in the development viewer (i.e. gulp server)

    To allow using modern CSS features that currently only Mozilla Firefox supports[1], while still enabling development/testing in recent Google Chrome versions, we'll have to start building the web/viewer.css file with gulp server as well.

    In my testing, building the development CSS (and copying the images) takes less than 200 ms on average which is hopefully an acceptable overhead for this sort of feature.


    [1] In particular float, with inline-start/inline-end values.

  • Remove the -webkit-mask-image/-webkit-mask-image CSS rules

    Given that we're now building the web/viewer.css file used in the development viewer, i.e. with gulp server, we no longer need to hard-code these -webkit-prefixed rules and can instead let Autoprefixer handle that for us.

@Snuffleupagus Snuffleupagus force-pushed the build-dev-CSS branch 2 times, most recently from 419505a to bff8a8c Compare March 15, 2022 12:33
…`gulp server`)

To allow using modern CSS features that currently only Mozilla Firefox supports[1], while still enabling development/testing in recent Google Chrome versions, we'll have to start building the `web/viewer.css` file with `gulp server` as well.

In my testing, building the development CSS (and copying the images) takes *less than* `200 ms` on average which is hopefully an acceptable overhead for this sort of feature.

---
[1] In particular `float`, with `inline-start`/`inline-end` values.
Given that we're now *building* the `web/viewer.css` file used in the development viewer, i.e. with `gulp server`, we no longer need to hard-code these `-webkit`-prefixed rules and can instead let Autoprefixer handle that for us.
@mozilla mozilla deleted a comment from pdfjsbot Mar 15, 2022
@mozilla mozilla deleted a comment from pdfjsbot Mar 15, 2022
@mozilla mozilla deleted a comment from pdfjsbot Mar 15, 2022
@mozilla mozilla deleted a comment from pdfjsbot Mar 15, 2022
@timvandermeij timvandermeij merged commit 489e9ff into mozilla:master Mar 16, 2022
@timvandermeij
Copy link
Contributor

Let's do this; thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants