This PR adds the functionality to inject the CSS string in a <style amp-custom>...</style> tag, as intended by the AMP project.
Functionality: It queries the <head> for an already available amp-custom tag, and appends the CSS string to its contents. If no amp-custom was found, it appends a new <style amp-custom /> element as a child of the document's head.
The previous functionality was preserved, so it's still backwards compatible.
This PR adds the functionality to inject the CSS string in a
<style amp-custom>...</style>
tag, as intended by the AMP project.Functionality: It queries the
<head>
for an already availableamp-custom
tag, and appends the CSS string to its contents. If noamp-custom
was found, it appends a new<style amp-custom />
element as a child of the document's head.The previous functionality was preserved, so it's still backwards compatible.