fix(curriculum): replace p tag with h3 tag (#55738)

This commit is contained in:
Eric Do
2024-08-06 14:29:43 -07:00
committed by GitHub
parent c0468dba9d
commit 3164f75f67
35 changed files with 69 additions and 69 deletions

View File

@@ -7,20 +7,20 @@ dashedName: step-34
# --description--
To prevent unnecessary repetition, target the `before` pseudo-element of the `p` element, and give it a `content` property of `"Question #"`.
To prevent unnecessary repetition, target the `before` pseudo-element of the `h3` element, and give it a `content` property of `"Question #"`.
# --hints--
You should use the `p::before` selector.
You should use the `h3::before` selector.
```js
assert.exists(new __helpers.CSSHelp(document).getStyle('p::before'));
assert.exists(new __helpers.CSSHelp(document).getStyle('h3::before'));
```
You should give the `p::before` pseudo-element a `content` property of `"Question #"`.
You should give the `h3::before` pseudo-element a `content` property of `"Question #"`.
```js
assert.include(new __helpers.CSSHelp(document).getStyle('p::before')?.content, 'Question #');
assert.include(new __helpers.CSSHelp(document).getStyle('h3::before')?.content, 'Question #');
```
# --seed--

View File

@@ -213,7 +213,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -196,7 +196,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -231,7 +231,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -203,7 +203,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -210,7 +210,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -217,7 +217,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -211,7 +211,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -196,7 +196,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -201,7 +201,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -210,7 +210,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -237,7 +237,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -252,7 +252,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -241,7 +241,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -234,7 +234,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -242,7 +242,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -256,7 +256,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -268,7 +268,7 @@ h2 {
border-bottom: 4px solid #dfdfe2;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -240,7 +240,7 @@ h2 {
}
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -261,7 +261,7 @@ h2 {
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -345,7 +345,7 @@ h2 {
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -267,7 +267,7 @@ input {
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -272,7 +272,7 @@ input {
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -281,7 +281,7 @@ input {
}
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -304,7 +304,7 @@ input {
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -7,38 +7,38 @@ dashedName: step-59
# --description--
Make the paragraph elements appear as a higher priority, with the following CSS properties:
Make the `h3` elements appear as a higher priority, with the following CSS properties:
```css
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
```
# --hints--
You should use the `p` element selector.
You should use the `h3` element selector.
```js
assert.exists(new __helpers.CSSHelp(document).getStyle('p'));
assert.exists(new __helpers.CSSHelp(document).getStyle('h3'));
```
You should give the `p` element a `margin-top` of `5px`.
You should give the `h3` element a `margin-top` of `5px`.
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('p')?.marginTop, '5px');
assert.equal(new __helpers.CSSHelp(document).getStyle('h3')?.marginTop, '5px');
```
You should give the `p` element a `padding-left` of `15px`.
You should give the `h3` element a `padding-left` of `15px`.
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('p')?.paddingLeft, '15px');
assert.equal(new __helpers.CSSHelp(document).getStyle('h3')?.paddingLeft, '15px');
```
You should give the `p` element a `font-size` of `20px`.
You should give the `h3` element a `font-size` of `22px`.
```js
assert.equal(new __helpers.CSSHelp(document).getStyle('p')?.fontSize, '20px');
assert.equal(new __helpers.CSSHelp(document).getStyle('h3')?.fontSize, '22px');
```
# --seed--
@@ -297,7 +297,7 @@ input {
--fcc-editable-region--
p::before {
h3::before {
content: "Question #";
}

View File

@@ -283,13 +283,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -289,13 +289,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -321,13 +321,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -287,13 +287,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -301,13 +301,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -299,13 +299,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -281,13 +281,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -299,13 +299,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}

View File

@@ -301,13 +301,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
}
p::before {
h3::before {
content: "Question #";
}
@@ -624,13 +624,13 @@ input {
padding-top: 5px;
}
p {
h3 {
margin-top: 5px;
padding-left: 15px;
font-size: 20px;
font-size: 22px;
}
p::before {
h3::before {
content: "Question #";
}