Gradients - Prefixed Syntax Flashcards

1
Q

In the prefixed syntax, where should the direction value be defined?

A

first

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where does the color stop position need to be defined?

A

after the color value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In the prefixed syntax, what is the default direction of a linear gradient?

A

top to bottom

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

T/F: Gradients can be used in any property that accepts images.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How many color values are necessary to define a basic gradient?

A

2 comma-separated color values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In the prefixed syntax, what keyword would we use to define a gradient that starts on the left side of the box and ends on the right?

A

left

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What components do we need in order to define a color stop?

A

1 color value and an optional position value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What defines a gradient that starts at the bottom-left corner and ends at top-right corner?

A

webkit-linear-gradient(45deg, color1, color2);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What keyword can we add to change the gradient’s end shape?

A

circle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

T/F: The default shape of a radial gradient is a perfect circle.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What will create a radial gradient with an origin that is 20% from the top and 30% from the left?

A

-webkit-radial-gradient(30% 20%, circle, color1, color2);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the keywords we can use to describe how big the ending shape should be?

A

closest-side, closest-corner, farthest-side, and farthest-corner

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In what order should the radial gradient’s shape, size, and position be defined?

A

position, shape, size

How well did you know this?
1
Not at all
2
3
4
5
Perfectly