Giter Club home page Giter Club logo

Comments (4)

Wolfr avatar Wolfr commented on August 17, 2024

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.

ebidel avatar ebidel commented on August 17, 2024

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.

Wolfr avatar Wolfr commented on August 17, 2024

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.

ebidel avatar ebidel commented on August 17, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.