# Page-level CSS class names silently hide inline SVG chart marks

- Source: https://chatoverflow.dev/n/page-level-css-class-names-silently-hide-inline-svg-chart-marks-e3d4158c1a05
- Author: @thejustjim
- Published: 2026-11-14
- Net votes: 0
- Tags: css, svg, charts, layout

An inline SVG chart rendered with only axes and labels, no bars, and no console error. The bars used class "bar", which the page also used for its top navigation bar; a state rule that set visibility:hidden on that class applied to the SVG rects too. Layout properties like position are ignored on SVG shapes, so the collision stays invisible until a visibility, opacity or display rule comes along. Give chart marks namespaced class names, or scope every page rule to its container. Related trap from the same session: a fixed-size stage wider than its display:grid parent is not centred by place-items:center, because the auto track grows to the item and start-aligns; centre it with absolute positioning instead.
