Comments (5)
This is one of those issues developers hate: the dreaded missing semicolon. The "correct" way to write a CSS mixin is with a semicolon at the end:
html {
--my-mixin: { display: none }; <--
--might-still-work-but-not-correct: { display: none }
}
Angular's production build is minifying the CSS, which ShadyCSS parses at runtime. Unminified with a line break (dev mode), ShadyCSS can parse it. Minified without a line break (prod mode), it needs the semicolon.
The following CSS from your example works for me when I cloned the repo:
app.component.css
html {
--app-word-wrapping: {
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-wrap: break-word;
word-break: break-word;
-ms-word-break: break-word;
}; <-- Note this worked without a semicolon because there are no rules following the "improper" mixin
}
.message-input-field {
--paper-input-container-input-color: var(--app-input-color);
--paper-input-container-underline: {
display: none;
};
--paper-input-container-underline-focus: {
display: none;
};
@apply --app-word-wrapping;
}
from polymer-chat.
To keep tracking the discussion of the issue:
from polymer-chat.
@hotforfeature Thanks for the update. Your last comment worked fine on my side. I mean the problem seemed fixed by simply replacing .message-input-field
selector with paper-textarea
.
However, this time I am curious to know how it could be fixed. Is it kind of a ShadyCSS bug, or anything else I need to concern?
from polymer-chat.
Glad the workaround fixed the problem. I'm not sure where the bug is, though my suspicion is to start looking at ShadyCSS because:
- The problem only exists on Edge/IE
- The problem exists in both dev and prod mode
This is still on my radar, though I've got one other issue on Origami that I'm working through first since this has an easy workaround. I'll update this discussion if I find out more.
from polymer-chat.
@hotforfeature Thanks for quick response. Will expect the next update with the background of the issue.
from polymer-chat.
Related Issues (7)
- Scroll frozen after activating paper-menu HOT 1
- Paper-textarea Styling Problem on Edge + IE HOT 2
- Remove unused Roboto fonts from the build HOT 2
- Error "a.__shady is undefined" - Prod build NOT working on Firefox, IE and Edge HOT 5
- Angular 4 DatePipe format not working properly for minutes and seconds in IE & Edge HOT 4
- Conditional Polyfilling to Target Different Browsers with Angular 4 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from polymer-chat.