[Bug]: Invalid CSS syntax in pdf_viewer.css #19879
-
Attach (recommended) or Link to PDF fileNo PDF issue Web browser and its versionNot browser related Operating system and its versionAll PDF.js version5.2.133 Is the bug present in the latest PDF.js version?Yes Is a browser extensionNo Steps to reproduce the problemStorybook fails to build the scripts that import pdf_viewer.css due to invalid CSS syntax. �[38;2;241;97;97mModule build failed (from ./node_modules/sass-loader/dist/cjs.js): What is the expected behavior?There is no invalid CSS syntax in the library. What went wrong?No issues with PDF rendering, just with storybook. Link to a viewerNo response Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
Link to the invalid syntax: |
Beta Was this translation helpful? Give feedback.
-
Unfortunately "Storybook" and "sass-loader" is not something that we use here, and consequently we cannot really provide any support for either of those. (Perhaps those tools lack support for modern CSS features?) |
Beta Was this translation helpful? Give feedback.
-
@CherechesC I just had the same problem. This is valid CSS syntax (spec: https://www.w3.org/TR/css-variables-1/#defining-variables, note how the value is marked as optional by |
Beta Was this translation helpful? Give feedback.
-
This has been fixed in Sass 1.88.0. |
Beta Was this translation helpful? Give feedback.
This has been fixed in Sass 1.88.0.