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

Missing background color when using variables and @media #1313

Closed
depth42 opened this issue Apr 29, 2024 · 2 comments · Fixed by #1315
Closed

Missing background color when using variables and @media #1313

depth42 opened this issue Apr 29, 2024 · 2 comments · Fixed by #1315
Labels

Comments

@depth42
Copy link

depth42 commented Apr 29, 2024

Describe the bug
Using a @media rule makes background color disappear in combination with using a CSS variable.

To Reproduce
Paginate the attached file "test.html" with Vivliostyle.

test.html.zip

Expected behavior
The box containing the text "test" should have a green background color. Instead it does not have a background color.

Desktop (please complete the following information):

  • macOS 14.4
  • Safari 17.4

Additional context

  • When I remove the @media rule, the green background is shown.
  • When I replace the test variable in the @media rule with a literal color, the green background is shown.
  • When opening test.html directly in Safari without pagination, the green background is shown.
@depth42 depth42 added the bug label Apr 29, 2024
@MurakamiShinyu
Copy link
Member

@depth42 Thanks for reporting the bug! I will investigate the problem.

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