chore(i18n,curriculum): update translations (#42407)

This commit is contained in:
camperbot
2021-06-08 23:52:55 +09:00
committed by GitHub
parent 3875c6e619
commit d81a451f4b
3 changed files with 6 additions and 6 deletions

View File

@ -37,14 +37,14 @@ dashedName: create-a-media-query
```js
const media = new __helpers.CSSHelp(document).getCSSRules('media');
assert(media.some(x => x.conditionText?.includes('(max-height: 800px)')));
assert(media.some(x => x.media?.mediaText?.includes('(max-height: 800px)')));
```
當設備 `height` 小於等於 `800px` 時,`p` 元素的 `font-size` 應爲 `10px`
```js
const rules = new __helpers.CSSHelp(document).getRuleListsWithinMedia('(max-height: 800px)');
assert(rules?.find(x => x.selectorText === 'p')?.style.fontSize === "10px");
assert(rules?.find(x => x.selectorText === 'p')?.style?.fontSize === "10px");
```
當設備 `height` 大於 `800px` 時,`p` 元素的 `font-size` 應爲 `20px`