I support your idea! It worth to access such property from inside TW without JS! Handling dynamic CSS using TW script is a great feature but very restricted as we have no access to such properties! For example in Timelines plugin I needed to calculate the width of a parent element!
--Mohammad On Thursday, August 8, 2019 at 5:58:52 PM UTC+4:30, Mat wrote: > > This bullet list... > > @@.mystyle > * foo > *** bar > @@ > > ...has a depth of three. > > I would like to access this number in .mystyle to use it to style the > width of the whole ul e.g in css width:calc(ULDEPTH * 20px) > > In css3, styles cannot be applied to a *parent node* based on the number > of children it has. It does seem possible with js > <https://stackoverflow.com/questions/22248432/calculate-depth-of-unordered-list> > . > > How could this be done in TW? > > <:-) > -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikidev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/85a6d321-f0b7-4542-9875-323afe0ed166%40googlegroups.com.