mayank99 / open-styleable

experimental server+client "polyfill" for openly styling shadow-roots
https://open-styleable.mynk.app/
MIT License
2 stars 1 forks source link

rename to `adoptHostStyles` and `adoptPageStyles` #7

Closed mayank99 closed 6 months ago

mayank99 commented 6 months ago

Having these two as separate, if verbosely named, attributes would be less confusing, compared to overloading the concept of initial/inherit which already has a different meaning in CSS.

<template shadowrootmode="open" adopthoststyles>
<template shadowrootmode="open" adoptpagestyles>

Note: @sheets can still be supported. It's actually less ambiguous now, since we know exactly where to look for sheets.

These sheet names are to be defined in the host:

adopthoststyles="sheet1 sheet3"

While these should be defined at the page level:

adoptpagestyles="sheet2 sheet4"