mozilla
Your Search Results

    Template:csscomputedcolordef

    <%
    // $0 is the name of the definition (property or data type), without < > or ''
     
    // Load the whole page (wiki.page does cache the original page
    var page = wiki.page(mdn.localString({
        "en-US" : "en-US/docs/Web/CSS/CSS_values_serialization",
        "de"    : "de/docs/CSS/CSS_Werte_Geltung",
        "fr"    : "fr/docs/CSS/CSS_values_serialization"
    }));
    
    var re = new RegExp("<\\s*(span|div)\\s+id\\s*=\\s*"+'"computed-color"'+"[^>]*>(.*)<\\s*/\\s*(span|div)\\s*\\>","igm");
    var value = re.exec(page);
      
    // If not found, it is a shorthand itself
    if (!value) {
        value = "*Not in database (color)*";  
    } else {
        // Found. We keep only the value
        value = value[2];
    }
    
    
    %><span id="computed-<%- $0 %>"><%- value %><span>
    Search for pages that use Template:csscomputedcolordef to see example use cases and how many pages use this macro.

    Document Tags and Contributors

    Contributors to this page: SJW, ethertank, teoli
    Last updated by: SJW,