--- id: 5a9d72a1424fe3d0e10cad15 title: Change a variable for a specific area challengeType: 0 videoUrl: 'https://scrimba.com/c/cdRwbuW' forumTopicId: 301085 localeTitle: 更改特定区域的变量 --- ## Description
当你在:root里创建变量时,这些变量的作用域是整个页面。 如果在元素里创建相同的变量,会重写:root变量设置的值。
## Instructions
penguinclass 里,设置--penguin-belly的值为white
## Tests
```yml tests: - text: '应该在penguinclas 里重定义--penguin-belly的变量值,且它的值为white。' testString: 'assert(code.match(/.penguin\s*?{[\s\S]*--penguin-belly\s*?:\s*?white\s*?;[\s\S]*}/gi));' ```
## Challenge Seed
```html
```
## Solution
```js // solution required ```