Suggestion: style tag/attribute selector for Polymer
See original GitHub issueAs mentioned in https://github.com/kangax/html-minifier/issues/447#issuecomment-183512009, gulp-minify-inline allows a cssSelector.
clean-css breaks Polymer’s CSS, so an easy work-around is to simply ignore any style tags that are marked is="custom-style"
.
This allows you to still clean non-Polymer style tags.
Issue Analytics
- State:
- Created 8 years ago
- Comments:5
Top Results From Across the Web
Styling local DOM - Polymer Project
Polymer uses Shadow DOM styling rules for providing scoped styling of the element's local DOM. Scoped styles should be provided via <style> tags...
Read more >Overview of styling possibilities · Issue #1821 - GitHub
Create a file with just the <style> tag (with the the custom-style attribute). Any property or mixin defined within a :root selector will...
Read more >Attribute selectors - CSS: Cascading Style Sheets | MDN
The CSS attribute selector matches elements based on the presence or value of a given attribute.
Read more >css styling using custom attributes to make it more readable ...
This is not a good practice. How to use custom attributes? First, you should use data attributes instead of full-custom attributes:
Read more >CSS Attribute Selector - W3Schools
selector is used to select elements whose attribute value ends with a specified value. The following example selects all elements with a class...
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 FreeTop 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
Top GitHub Comments
One way to achieve what you want is to utilise
ignoreCustomFragments
That works, thanks.