v149 · CSS · UA Stylesheet

Theme Inheritance Demo

Pick a color theme — applied via only a color property on the container. Watch how table borders now follow the theme in Chrome 149+, because border-color correctly inherits from color without a UA override forcing them gray.

Custom color: applied only via color property — no border-color
Container has only color set — borders inherit in Chrome 149+
ProductQ1Q2Q3Status
Widget A$12,400$14,100$16,800Growing
Widget B$8,200$9,500$7,900Declining
Service X$32,000$35,400$41,200Surging
License Y$4,100$4,100$4,100Stable
color: (set on container — only rule applied)
border-color (computed): (inherits from color in Chrome 149+)
Before Chrome 149 — UA forces gray
ProductValue
Widget A$12,400
Widget B$8,200
UA stylesheet: table { border-color: gray; }
Borders are always gray, ignoring the author's color.
Chrome 149+ — borders inherit color
ProductValue
Widget A$12,400
Widget B$8,200
UA rule removed. border-color inherits from color: #1a3a5c.
Table matches the theme without any extra CSS.

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗