'Is there a syntax to inherit the value of content in CSS and concatenate it?

I would like the content property to be concatenated instead of overriding.

<div class="bear"></div>
div::after {
  content: "hello";
}
.bear::after {
  content: " bear"; /* Here, I would like bear to be concatenated to "hello" instead of overriding it */
}
css


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source