Skip to content

Add quickfix for csso parse error #39

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

Closed
wants to merge 1 commit into from

Conversation

jhnns
Copy link
Member

@jhnns jhnns commented Feb 3, 2015

This pull request adds a quickfix for the csso parse error.
#36

css/csso#185

@sokra
Copy link
Member

sokra commented Feb 3, 2015

The test doesn't fail without the fix...

It doesn't seem to test the bug... Not sure... Maybe I do something wrong..

@jhnns
Copy link
Member Author

jhnns commented Feb 3, 2015

Strange... the tests are failing as expected if I just return the content without modifying it

@jhnns
Copy link
Member Author

jhnns commented Feb 3, 2015

bildschirmfoto 2015-02-03 um 23 30 35
bildschirmfoto 2015-02-03 um 23 30 59
bildschirmfoto 2015-02-03 um 23 31 46

@sokra
Copy link
Member

sokra commented Feb 3, 2015

Strange... the tests are failing as expected if I just return the content without modifying it

Only because the atrifical a{} is missing...

Construct a test case that demonstrate the bug...

@jhnns
Copy link
Member Author

jhnns commented Feb 3, 2015

See my first picture. When the content is returned without adding the a{}, the tests are failling.

@benurb
Copy link

benurb commented Feb 9, 2015

I have the same problem and the PR fixed it for me. Thanks 👍

@navinpeiris
Copy link

👍

@sokra
Copy link
Member

sokra commented Feb 23, 2015

I would like to reprodude it before merging... So please give me a testcase.

@benurb
Copy link

benurb commented Feb 23, 2015

I've found the underlying problem in my input files. They were generated by the sass preprocessor, which adds a byte-order-mark to the beginning of the resulting CSS file. csso was unable to parse this file correctly so I opened a PR there: css/csso/pull/223
@sokra: Maybe the BOM-removal-logic is something you want to add to your css-loader, too. But this quickfix here in this PR is not needed imho.

@svnlto
Copy link

svnlto commented Apr 1, 2015

👍

@sokra
Copy link
Member

sokra commented Apr 2, 2015

@sokra: Maybe the BOM-removal-logic is something you want to add to your css-loader, too. But this quickfix here in this PR is not needed imho.

Maybe we can add this to webpack...

@sokra
Copy link
Member

sokra commented Apr 9, 2015

@sokra: Maybe the BOM-removal-logic is something you want to add to your css-loader, too. But this quickfix here in this PR is not needed imho.
Maybe we can add this to webpack...

We already have this: https://github.com/webpack/core/blob/master/lib/NormalModuleMixin.js#L15-L22

@sokra sokra closed this Apr 9, 2015
@sokra
Copy link
Member

sokra commented Apr 9, 2015

Closing as we are no longer using csso...

koistya pushed a commit to koistya/css-loader that referenced this pull request Nov 19, 2015
IE9 will actually drop certain things (like media queries) from the
cssText property when it is read back out. To fix, store the raw css
text in a separately managed array, and use that to form the entire
string that should be set on the style element's cssText property.

Fixes webpack-contrib#39.
koistya pushed a commit to koistya/css-loader that referenced this pull request Nov 19, 2015
…dia-queries

[webpack-contrib#39] Don't use styleSheet to store state of css text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants