@zalasur@mastodon.surazal.net
@zalasur@mastodon.surazal.net avatar

zalasur

@zalasur@mastodon.surazal.net

I play strategy games, write software, and stream on Peertube (not necessarily in that order). Also, sock monkeys! Preferred pronouns: he/him/his.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

zalasur, to random
@zalasur@mastodon.surazal.net avatar

One of my frustrations as a web developer is that we as an industry have gotten so bad at doing stylesheets the default behavior for modern web applications is to use shadow root disable the cascade in "cascading style sheets" because people do not know how to properly scope them in their own web pages.

We've basically reverted to the bad old days where styles were defined on each element individually rather than globally, as was the intent of CSS.

zalasur,
@zalasur@mastodon.surazal.net avatar

I just ended up disabling the shadow root by defining my own custom class that inherited from LitElement. Supposedly this is not recommended because it make composition more difficult but I'm not really concerned about that. If I feel up to it I'll re-enable shadow root, but only for the top-level element(s). I definitely don't need 300 nested shadow roots in my page.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • cubers
  • mdbf
  • everett
  • magazineikmin
  • Durango
  • Youngstown
  • rosin
  • slotface
  • modclub
  • kavyap
  • ethstaker
  • provamag3
  • ngwrru68w68
  • thenastyranch
  • cisconetworking
  • khanakhh
  • osvaldo12
  • InstantRegret
  • normalnudes
  • Leos
  • tacticalgear
  • tester
  • anitta
  • megavids
  • lostlight
  • All magazines