lukaslueg / macro_railroad_ext

Display syntax-diagrams for Rust-macros on docs.rs and doc.rust-lang.org
MIT License
185 stars 10 forks source link

`style` attribute -- a quick hint #5

Closed h-h-h-h closed 5 years ago

h-h-h-h commented 5 years ago

Wrong:

Explanation:

lukaslueg commented 5 years ago

Thanks for the heads-up. My non-existent knowledge of JS // DOM // CSS // whatever is showing. I guess .style.width = "100px" is valid ?

h-h-h-h commented 5 years ago

That's correct.

lukaslueg commented 5 years ago

As a matter of fact a JS linter complains a lot about the module. I did not really got around to fixing any of it, since, well, JS will be JS.