Skip to content

CSS Object ignored when sinked through a Mixin #20

@dariomannu

Description

@dariomannu

Attribute Mixins should support sinking CSS when emitted as an object.

They work with strings, as per this example:

Relevant code:
https://github.com/ReactiveHTML/rimmel/blob/master/src/sinks/mixin-sink.ts
https://github.com/ReactiveHTML/rimmel/blob/master/src/sinks/attribute-sink.ts

Hint: to trace down what Rimmel is doing in the parser in a specific location, you can open devtools and add a rml:debugger attribute to a template, right before the thing you want to debug, like this:

<div rml:debugger foo="${bar}">

The code will pause at that very parsing step, making it easier to see what's going on. Work on local, with a dev build of Rimmel, not the prod one, to make it easier to do step-by-steps.

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions