Ask Your Question
0

How are `all: unset` and `all: revert` dissimilar from each other?

asked 2022-10-13 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2022-09-16 18:00:00 +0000

djk gravatar image

all: unset removes all values previously set for a property, including any default values.

all: revert sets the value of a property to its inherited value, effectively undoing any changes made to the property in the current selector.

The key difference between the two is that all: unset removes all values, including defaults, while all: revert only reverts to the inherited value.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-10-13 11:00:00 +0000

Seen: 11 times

Last updated: Sep 16 '22