The element ‘my_grid_layout’ shows up properly when defined as below. When instead of explicitly declaring it, I add it via startup.js, the css styling based on class fails, while styling on tag/element succeeds. In the debugger if I “edit HTML” on my_grid_layout and make a trivial whitespace change, it gets fixed. It looks like Electron or Chrome may not be recomputing styles when it should?
To give a little more info - I am loading text files into document fragments and then including those in the DOM. This fails as described. When I instead include the templates directly in the HTML and clone from there, the styles show up properly. Shouldn’t the style be recomputed on children being added to a node with CSS from a document fragment without CSS?