You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
silverwind 57a0a7ef64
Fix opaque background on mermaid diagrams (#21642)
Browsers introduce a opaque background on iframes if the iframe
element's color-scheme does not match the document's color scheme which
in case of a dark theme results in a mismatch and the browser adds a
white background. Avoid this by specifying the same color scheme outside
and inside the iframe.

See https://fvsch.com/transparent-iframes for more info.

My initial attempt was to make the iframe document the same color-scheme
as the parent page (light or dark) but with that, there was a ugly
background flash on load in Chrome because Chrome apparently always
loads iframe in light scheme initially. Firefox still shows a background
flash on load but this is not possible to get rid of and it's certainly
a browser bug.

Before:
<img width="1147" alt="Screen Shot 2022-10-31 at 13 30 55"
src="https://user-images.githubusercontent.com/115237/199017132-9828aace-bdd0-4ede-8118-359e72bcf2fe.png">

After:
<img width="1152" alt="Screen Shot 2022-10-31 at 13 30 36"
src="https://user-images.githubusercontent.com/115237/199017137-989a9e67-3fe0-445f-a191-df5bf290dabf.png">
2 years ago
..
components Localize time units on activity heatmap (#21570) 2 years ago
features Localize time units on activity heatmap (#21570) 2 years ago
markup Fix opaque background on mermaid diagrams (#21642) 2 years ago
modules Improve commit status icons (#21124) 2 years ago
standalone Add new JS linter rules (#17699) 3 years ago
test Switch from jest to vitest (#21444) 2 years ago
bootstrap.js Fix mermaid-related bugs (#21431) 2 years ago
index.js Add system setting table with cache and also add cache supports for user setting (#18058) 2 years ago
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 4 years ago
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 4 years ago
svg.js Refactor from Vue2 to Vue3 (#20044) 2 years ago
svg.test.js Remove vitest globals (#21505) 2 years ago
utils.js Localize time units on activity heatmap (#21570) 2 years ago
utils.test.js Localize time units on activity heatmap (#21570) 2 years ago