CSS string-set Property

Description

The string-set property accepts a comma-separated list of named strings. Each named string is followed by a content list that specifies which text to copy into the named string. Whenever an element with value of 'string-set' different from 'none' is encountered, the named strings are assigned their respective value.

The string-set property has been deprecated or is no longer in any CSS working groups.

Initial value
none
Applies to
All elements
Inherited
No
Media
All
Computed value
As specified value
Animatable
No
CSS Version
CSS3
JavaScript syntax
object.style.stringSet

Syntax

string-set: [[ <identifier> <content-list>] [, <identifier> <content-list>]* ] | none

Values

  • <identifier>
  • <content-list>
  • none

Example

.class {
   string-set: header "Chapter " counter(header) ": " self; 
}

Browser Support

Desktop
Explorer Edge Chrome Firefox Opera Safari
??????
Tablets / Mobile
Android Chrome Firefox Opera Safari Samsung
??????