Closed freshp86 closed 7 years ago
/cc @danbeam @kevinpschaaf @sorvell
@azakus
So it seems like during the combination of <style>
tags part we're not keeping all include=
attributes while "consuming" the <style>
tags. This makes sense as they were previously being processed and left empty after inlining.
We should either:
include
s while combining the text content (PR)<style>
s more alone (and change the flag to like --preserve-styles
) (PR)I might favor 1.
I favor option 1 as well. Thanks for the PR!
Fixed with #14, released as v0.1.1
It would be nice to have some test coverage before closing this bug completely.
@freshp86 yeah that's fair, I'll go make one up
Thanks!
btw, closed the other PR.
I agree that tests would be swell. I was going to write one; just wanted to know which route @azakus wanted to go first. Now that he's also volunteered to make one up, who am I to stop him :wink:
I made some tests, and cleaned up the implementation to actually work 😆
I made some tests, and cleaned up the implementation to actually work :laughing:
Thanks. Does this mean that we need v0.1.2 to actually get a working implementation?
@freshp86 yes
When an element has more than one
<style>
tags,--no-inline-includes
causes the first one to be dropped. Example belowbug.html
Then run
foo.html
becomesNotice how
my-style
is no longer referred bymy-element
. Omitting-no-inline-includes
handles it correctly.