Skip to content

Commit

Permalink
Deploying to gh-pages from @ 8f9e6b6 πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 19, 2024
1 parent 7d29272 commit 36f3d69
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions css/SampleLayout.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,26 @@
height: 100%;
border: none;
display: block;
/* should should remain white because samples in iframes expect a white background */
color-scheme: light;
/*
* iframe content inherits the background color of the iframe element
* in the parent but, the content might expect the default white background
* so we set the iframe element's background to white
*/
background-color: #fff;
/*
* further, the browser will ignore the color scheme in the iframe content
* if it matches the one in the parent iframe element. In other words
*
* * iframe element says 'color-scheme: light dark'.
* * iframe content says 'color-scheme: light dark'.
*
* result: iframe content color-scheme setting is ignored and it gets
* the background color from the iframe element in the parent.
*
* Solution: set the iframe element color-scheme to initial. Now the
* iframe content's setting will be respected.
*/
color-scheme: initial;
}

.sampleCategory {
Expand Down

0 comments on commit 36f3d69

Please sign in to comment.