Documents often reference and use the contents of other files (and other Web resources) as part of their rendering. In some cases, authors want to specify that particular resources are required for a document to be considered correct.
externalResourcesRequired attribute is available on all container elements and to all elements which potentially can reference external resources. It specifies whether referenced resources that are not part of the current document are required for proper rendering of the given container element or graphics element.
This attribute applies to all types of resource references, including style sheets, color profiles and fonts specified by a reference using a
<font-face> element or a CSS @font-face specification. In particular, if an element sets
externalResourcesRequired="true", then all style sheets must be available since any style sheet might affect the rendering of that element.
externalResourcesRequired attribute is not inheritable (from a sense of attribute value inheritance), but if set on a container element, its value will apply to all elements within the container.
externalResourcesRequired="true" on a container element will have the effect of disabling progressive display of the contents of that container, if that container includes elements that reference external resources, authors should avoid simply setting
externalResourcesRequired="true" on the outermost svg element on a universal basis. Instead, it is better to specify
externalResourcesRequired="true" on those particular graphics elements or container elements which specifically need the availability of external resources in order to render properly.
|Value||true | false|
|Normative document||SVG 1.1 (2nd Edition)|
|Android webview||Chrome for Android||Edge Mobile||Firefox for Android||Opera for Android||iOS Safari||Samsung Internet|
The following elements can use the
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.