OLD | NEW |
1 <script> | |
2 internals.settings.setCSSVariablesEnabled(true); | |
3 </script> | |
4 <style> | 1 <style> |
5 body { | 2 body { |
6 -webkit-var-foreground: green; | 3 -webkit-var-foreground: green; |
7 -webkit-var-background: rgb(255, 255, 255); | 4 -webkit-var-background: rgb(255, 255, 255); |
8 } | 5 } |
9 div { | 6 div { |
10 color: -webkit-var(foreground); | 7 color: -webkit-var(foreground); |
11 background-color: red; | 8 background-color: red; |
12 background-color: -webkit-var(background); | 9 background-color: -webkit-var(background); |
13 } | 10 } |
14 </style> | 11 </style> |
15 <div> | 12 <div> |
16 This text should be green on a white background. There should be no red visible. | 13 This text should be green on a white background. There should be no red visible. |
17 </div> | 14 </div> |
OLD | NEW |