Comments (1)
Added in 5409193 (among other things) 🎉
const style = document.createElement()
const newZ = z.new({ style })
Off topic: is generation of inline styles just for file size or are there other performance benefits?
Do you mean attaching the styles directly to each element and generating a class for each?
If you style directly on each element zaftig basically ends up generating very simple flat css with very few nesting rules, which could potentially be faster for the browser process.
from zaftig.
Related Issues (14)
- automated test suite HOT 1
- handle `@import` HOT 1
- "theming" implementation HOT 2
- helpers vs. inlinining the CSS directly into the templated string? HOT 2
- z.keyframes and keyframes namespacing HOT 1
- shorthands are nice when prototyping, but deriving them from the browser isn't really safe long term
- mr resolves to mask-type in chrome browsers instead of margin-right
- improve documentation
- remove parser options setting HOT 1
- name change? HOT 2
- better error handling
- automatic prefixing for pseudo selectors (and values) HOT 1
- handle `@supports` HOT 1
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 zaftig.