Incorrectly generated css
See original GitHub issueFirstly, thanks for your work on this plugin!
I seem to be encountering a bit of an issue when trying to use it with a ruleset that includes float and _display properties:
Input
.fl { float: left; _display: inline; }
.fr { float: right; _display: inline; }
.fn { float: none; }
Output
.fl { _display: inline; }
[dir=ltr] .fl { _float: left; }
[dir=rtl] .fl { _float: right; }
.fr { _display: inline; }
[dir=ltr] .fr { _float: right; }
[dir=rtl] .fr { _float: left; }
[dir] .fn { float: none; }
Not sure what’s going on yet, but I will try and at least open up a pr with a failing test case shortly.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
CSS Generating Incorrectly? - Support - Themeco Forum
Hi. I needed to edit this for clarity. This is how the end of my “x-generated-css” looks. At the time this is taken,...
Read more >Incorrect css generated by tailwind CLI #8150 - GitHub
JS project using Express, Tailwindcss and EJS. I am building my tailwind css like so: npx tailwindcss -i source.css -o public/stylesheets/style.css --watch.
Read more >How Do I Fix CSS Errors? - Sitechecker
If you want to control your website's appearance, it is important to understand the way CSS documents work and how to fix broken...
Read more >Handling common HTML and CSS problems - MDN Web Docs
Note: One common problem with CSS and HTML arises when different CSS rules begin to conflict with one another.
Read more >Django includes the wrong generated/compressed CSS file
The first goal: add some custom CSS. Our approach is to create an own Django project and, in settings.py, to import Horizon's default...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Breaking out the
display: inline;definitely makes sense. My issue is with thefloatproperty ending up with the underscore prefix:_float: left. I’m guessing it has something to do with the parsing, causing the float to take on thedisplayproperty’s prefix browser hack.No worries, thank you!