Hacker News new | ask | show | jobs
by Inviz 299 days ago
hmm... where to start?

  - Variables cascade and cause restyle of whole sub-tree.
  - Attributes often are already on the html element, e.g. title, aria, data attributes, so dont need inline styles
  - Not mixing data with presentation
Just to name a few
1 comments

But if you‘re defining the style within the data (the width within the HTML as data attribute), aren‘t you actually mixing presentation with data?