Difference between revisions of "Template:Gradient Text"

From Moegirlpedia
Jump to: navigation, search
m (// Edit via Wikiplus)
Line 9: Line 9:
 
Because in the current browsers, only the Edge and Webkit kernels (Chrome, Safari, Android's own browsers, and extremely fast kernels of domestic dual-core browsers) with the <code>background-clip:text</code> attribute implemented can parse and display the effect. The display effect below IE and Firefox 49 is restored to the original black text (Firefox 48 can open <code>about:config</code>, put <code>layout.css.background-clip-text.enabled</code> and <code>layout.css.prefixes.webkit</code> to <code>true</code> to see the effect).
 
Because in the current browsers, only the Edge and Webkit kernels (Chrome, Safari, Android's own browsers, and extremely fast kernels of domestic dual-core browsers) with the <code>background-clip:text</code> attribute implemented can parse and display the effect. The display effect below IE and Firefox 49 is restored to the original black text (Firefox 48 can open <code>about:config</code>, put <code>layout.css.background-clip-text.enabled</code> and <code>layout.css.prefixes.webkit</code> to <code>true</code> to see the effect).
  
Reference: [https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip background-clip | MDN]
+
Reference: [https://developer.mozilla.org/en-US/docs/Web/CSS/background-clip background-clip MDN]
 
}}
 
}}
  
 
[[Category:Formatting templates]]</noinclude>
 
[[Category:Formatting templates]]</noinclude>

Revision as of 00:50, 26 July 2022

Template-info.svg Template Documentation  [Edit]

Introduction

This is a gradient color text template. Real gradient text using the CSS background-clip:text property. Instead of the original gradient effect simulated by one text and one color.

Because in the current browsers, only the Edge and Webkit kernels (Chrome, Safari, Android's own browsers, and extremely fast kernels of domestic dual-core browsers) with the background-clip:text attribute implemented can parse and display the effect. The display effect below IE and Firefox 49 is restored to the original black text (Firefox 48 can open about:config, put layout.css.background-clip-text.enabled and layout.css.prefixes.webkit to true to see the effect).

Reference: background-clip MDN