It is possible to embed CSS inside the <style> element using the data: URI scheme. Like this:
<link rel="stylesheet" href="data:text/css,EMBEDDED_CSS_GOES_HERE">
This worked in 0.2.0, but doesn’t work in 0.2.1 with the move from urllib.urlopen() to python-requests.
It’d be nice to get this working again, though it’s arguably a requests issue.
I took a quick at requests, but I couldn’t determine if they have support for RFC 2397 (which defines the data: scheme).
I suggest leaving this bug open until either of us the time to investigate RFC2397 support in python-requests.
It is possible to embed CSS inside the
<style>element using the data: URI scheme. Like this:This worked in 0.2.0, but doesn’t work in 0.2.1 with the move from urllib.urlopen() to python-requests.
It’d be nice to get this working again, though it’s arguably a requests issue.
I took a quick at requests, but I couldn’t determine if they have support for RFC 2397 (which defines the data: scheme).
I suggest leaving this bug open until either of us the time to investigate RFC2397 support in python-requests.