mayu-live / framework

Mayu is a live updating server-side component-based VDOM rendering framework written in Ruby
https://mayu.live
GNU Affero General Public License v3.0
130 stars 4 forks source link

CSS ordering causing cascade issues #38

Open aalin opened 1 year ago

aalin commented 1 year ago
:css
  .paragraph { margin: 1em 0; }
%p.paragraph
  %slot
:ruby
  Paragraph = import("./Paragraph")
:css
  .override { margin: 0; }
%Paragraph.override
  It is possible that this override doesn't get applied because
  the stylesheets were loaded in the wrong order.

I don't know it it would be possible to solve this somehow with @layer. Maybe could get the order from the dependency graph and insert the order into the root css file...

aalin commented 1 year ago

Would probably be fixed by #61