{ "title":"SVG effects for HTML", "description":"Method of using SVG transforms, filters, etc on HTML elements using either CSS or the foreignObject element", "spec":"https://www.w3.org/TR/SVG11/extend.html#ForeignObjectElement", "status":"rec", "links":[ { "url":"https://developer.mozilla.org/en/SVG/Tutorial/Other_content_in_SVG", "title":"MDN Web Docs - Other content in SVG" }, { "url":"https://developer.mozilla.org/En/Applying_SVG_effects_to_HTML_content", "title":"MDN Web Docs - Applying SVG effects" }, { "url":"https://www.w3.org/TR/filter-effects/", "title":"Filter Effects draft" } ], "bugs":[ { "description":"Browsers can have differing behavior when HTML CSS properties are set on SVG elements, for example Edge & IE browsers do not respond to the `height` property while Chrome does." } ], "categories":[ "SVG" ], "stats":{ "ie":{ "5.5":"n", "6":"n", "7":"n", "8":"n", "9":"a #1 #2", "10":"a #1 #2", "11":"a #1 #2" }, "edge":{ "12":"a #2", "13":"a #2", "14":"a #2", "15":"a #2", "16":"a #2", "17":"a #2", "18":"a #2", "79":"a", "80":"a", "81":"a", "83":"a", "84":"a" }, "firefox":{ "2":"n", "3":"a", "3.5":"y", "3.6":"y", "4":"y", "5":"y", "6":"y", "7":"y", "8":"y", "9":"y", "10":"y", "11":"y", "12":"y", "13":"y", "14":"y", "15":"y", "16":"y", "17":"y", "18":"y", "19":"y", "20":"y", "21":"y", "22":"y", "23":"y", "24":"y", "25":"y", "26":"y", "27":"y", "28":"y", "29":"y", "30":"y", "31":"y", "32":"y", "33":"y", "34":"y", "35":"y", "36":"y", "37":"y", "38":"y", "39":"y", "40":"y", "41":"y", "42":"y", "43":"y", "44":"y", "45":"y", "46":"y", "47":"y", "48":"y", "49":"y", "50":"y", "51":"y", "52":"y", "53":"y", "54":"y", "55":"y", "56":"y", "57":"y", "58":"y", "59":"y", "60":"y", "61":"y", "62":"y", "63":"y", "64":"y", "65":"y", "66":"y", "67":"y", "68":"y", "69":"y", "70":"y", "71":"y", "72":"y", "73":"y", "74":"y", "75":"y", "76":"y", "77":"y", "78":"y", "79":"y", "80":"y", "81":"y", "82":"y" }, "chrome":{ "4":"a", "5":"a", "6":"a", "7":"a", "8":"a", "9":"a", "10":"a", "11":"a", "12":"a", "13":"a", "14":"a", "15":"a", "16":"a", "17":"a", "18":"a", "19":"a", "20":"a", "21":"a", "22":"a", "23":"a", "24":"a", "25":"a", "26":"a", "27":"a", "28":"a", "29":"a", "30":"a", "31":"a", "32":"a", "33":"a", "34":"a", "35":"a", "36":"a", "37":"a", "38":"a", "39":"a", "40":"a", "41":"a", "42":"a", "43":"a", "44":"a", "45":"a", "46":"a", "47":"a", "48":"a", "49":"a", "50":"a", "51":"a", "52":"a", "53":"a", "54":"a", "55":"a", "56":"a", "57":"a", "58":"a", "59":"a", "60":"a", "61":"a", "62":"a", "63":"a", "64":"a", "65":"a", "66":"a", "67":"a", "68":"a", "69":"a", "70":"a", "71":"a", "72":"a", "73":"a", "74":"a", "75":"a", "76":"a", "77":"a", "78":"a", "79":"a", "80":"a", "81":"a", "83":"a", "84":"a", "85":"a", "86":"a", "87":"a", "88":"a" }, "safari":{ "3.1":"n", "3.2":"n", "4":"a", "5":"a", "5.1":"a", "6":"a", "6.1":"a", "7":"a", "7.1":"a", "8":"a", "9":"a", "9.1":"a", "10":"a", "10.1":"a", "11":"a", "11.1":"a", "12":"a", "12.1":"a", "13":"a", "13.1":"a", "14":"a", "TP":"a" }, "opera":{ "9":"a", "9.5-9.6":"a", "10.0-10.1":"a", "10.5":"a", "10.6":"a", "11":"a", "11.1":"a", "11.5":"a", "11.6":"a", "12":"a", "12.1":"a", "15":"a", "16":"a", "17":"a", "18":"a", "19":"a", "20":"a", "21":"a", "22":"a", "23":"a", "24":"a", "25":"a", "26":"a", "27":"a", "28":"a", "29":"a", "30":"a", "31":"a", "32":"a", "33":"a", "34":"a", "35":"a", "36":"a", "37":"a", "38":"a", "39":"a", "40":"a", "41":"a", "42":"a", "43":"a", "44":"a", "45":"a", "46":"a", "47":"a", "48":"a", "49":"a", "50":"a", "51":"a", "52":"a", "53":"a", "54":"a", "55":"a", "56":"a", "57":"a", "58":"a", "60":"a", "62":"a", "63":"a", "64":"a", "65":"a", "66":"a", "67":"a", "68":"a", "69":"a", "70":"a" }, "ios_saf":{ "3.2":"a", "4.0-4.1":"a", "4.2-4.3":"a", "5.0-5.1":"a", "6.0-6.1":"a", "7.0-7.1":"a", "8":"a", "8.1-8.4":"a", "9.0-9.2":"a", "9.3":"a", "10.0-10.2":"a", "10.3":"a", "11.0-11.2":"a", "11.3-11.4":"a", "12.0-12.1":"a", "12.2-12.4":"a", "13.0-13.1":"a", "13.2":"a", "13.3":"a", "13.4-13.5":"a", "14.0":"a" }, "op_mini":{ "all":"n" }, "android":{ "2.1":"n", "2.2":"n", "2.3":"n", "3":"n", "4":"n", "4.1":"n", "4.2-4.3":"n", "4.4":"a", "4.4.3-4.4.4":"a", "81":"a" }, "bb":{ "7":"n", "10":"y" }, "op_mob":{ "10":"a", "11":"a", "11.1":"a", "11.5":"a", "12":"a", "12.1":"a", "46":"a" }, "and_chr":{ "84":"a" }, "and_ff":{ "79":"y" }, "ie_mob":{ "10":"n", "11":"n" }, "and_uc":{ "12.12":"n" }, "samsung":{ "4":"a", "5.0-5.4":"a", "6.2-6.4":"a", "7.2-7.4":"a", "8.2":"a", "9.2":"a", "10.1":"a", "11.1-11.2":"a", "12.0":"a" }, "and_qq":{ "10.4":"a" }, "baidu":{ "7.12":"a" }, "kaios":{ "2.5":"y" } }, "notes":"Partial support refers to lack of filter support or buggy result from effects. A [CSS Filter Effects](https://www.w3.org/TR/filter-effects/) specification is in the works that would replace this method.", "notes_by_num":{ "1":"IE11 and below do not support ``.", "2":"IE and Edge do not support applying SVG filter effects to HTML elements using CSS. [Bug Report](https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/6618695/)" }, "usage_perc_y":4.35, "usage_perc_a":91.84, "ucprefix":false, "parent":"", "keywords":"", "ie_id":"", "chrome_id":"", "firefox_id":"", "webkit_id":"", "shown":true }