-
Notifications
You must be signed in to change notification settings - Fork 185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Insert media queries to style tag in the head of the document when the sources css makes use of them. #192
base: master
Are you sure you want to change the base?
Conversation
Abandoned feature ? It would be useful. |
It would be really useful. BTW, Emogrifier has it. |
$docNode = $document->documentElement; | ||
$head = $document->createElement('head'); | ||
$head->appendChild($style); | ||
$docNode->insertBefore($head, $docNode->firstChild); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
isn't this broken if the HML has a <html>
tag without a <head>
tag ? An absent <head>
tag does not only happen in partials
css media queries were filtered out (which makes sense as they're not supported as inline style), now that more and more clients support style tags in the head it makes sense to include them there when the source css contains them.