Use container queries to style descendants of sticky positioned containers based on whether the sticky positioned element is stuck to one of the edges of the scroll box. For instance: #sticky { position: sticky; container-type: sticky; } @container state(stuck: top) { #sticky-child { font-size: 75% } }
See explainer
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
None
No milestones specified