# engine/view/styles/background

module

<a id="functions">

## Functions

<a id="function-addBackgroundStylesRules">

### `addBackgroundStylesRules( stylesProcessor ) → void`

Adds background CSS styles processing rules to the given `StylesProcessor`.

Registers normalizers for the `background` shorthand and its longhand properties, reducers that serialize them back to CSS strings, and the relation mapping between them.

```typescript
editor.data.addStyleProcessorRules( addBackgroundStylesRules );
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-engine/src/view/styles/background.ts#L68)

#### Parameters

* `stylesProcessor: StylesProcessor`

  The styles processor instance to register rules on.

#### Returns

* `void`

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
