Comments (4)
I'll add the cases. Thanks so much.
I see you define the custom element directly without "HTML imports".
Was this the flaw in my code or was it the lack of Polymer.register(this);
?
I copied stuff from the Polymer TodoMVC implementation to figure out how it works. Deleted too much code I guess :)
from css-encapsulation-today.
The TodoMVC might not be the best place to start. We need an articling on styling.
You don't have to use HTML imports. It's just a handy way to bring things in if you don't want to define
everything in a single file.
from css-encapsulation-today.
I added the examples to the repository.
I had some ideas questions and comments when I read the referenced issue (from CSS author perspective not used to working with x-tags), if welcome I will add these. I think most would be solved by a good re-reading of your Shadow DOM 101, 201 (...) articles. I don't yet "get" how styles can be made accessible or can be locked down etc. This is probably all in flux at the moment.
from css-encapsulation-today.
To be clear, x-tags is Mozilla's polyfill for custom elements. It's not a polyfill
for shadow.
I agree with you that there are a lot of different moving pieces to the equation. Ultimately though, what you're
after is probably custom elements. One benefit you can get from them is that they their inner connect can
easy be created using shadow dom, which in turn, gives you encapsulated styles.
from css-encapsulation-today.
Related Issues (4)
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 css-encapsulation-today.