Skip to content

Commit

Permalink
update(CSS): web/css/using_css_custom_properties
Browse files Browse the repository at this point in the history
  • Loading branch information
undead404 authored and AdriandeCita committed Sep 22, 2022
1 parent 3397acb commit 2363891
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions files/uk/web/css/using_css_custom_properties/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,13 @@ p {

```js
// отримати змінну із вбудованого стилю
element.style.getPropertyValue('--my-var');
element.style.getPropertyValue("--my-var");

// отримати змінну звідки завгодно
getComputedStyle(element).getPropertyValue('--my-var');
getComputedStyle(element).getPropertyValue("--my-var");

// встановити змінну на вбудованому стилі
element.style.setProperty('--my-var', jsVar + 4);
element.style.setProperty("--my-var", jsVar + 4);
```

## Дивіться також
Expand Down

0 comments on commit 2363891

Please sign in to comment.