Closed MarvNC closed 1 month ago
CSS scoping is an issue, if dictionaries are basically just injecting a <style>
node with rules. If the CSS classes are defined in a way that is more similar to structured content, but having common type definitions for common classes, the issue is a bit different, in that there suddenly needs to be a way to store and retrieve that in the database.
Again the reason why it is currently set up that way is because when I designed it, I did not foresee it growing into such a broadly used feature as it is today.
I think we have three options for scoping:
Shadow dom is possible but probably very ugly. Problems with Anki export though.
Originally posted by @djahandarie in https://github.com/themoeway/yomitan/pull/527#pullrequestreview-1821463382
I always thought the same, it seemed quite limiting. Maybe the reason is compatibility with light and dark themes and ensuring a consistent experience by limiting what can be styled:
Originally posted by @toasted-nutbread in https://github.com/themoeway/yomitan/issues/450#issuecomment-1869227125