I’m not sure why this code works, because it is misspelled, in #box-1 the flex:shrink; is spelled as flex:shring; but it still works, is this a FreeCodeCamp feature?
please include the code you are reporting about
It passes because flex-shrink: 1
is the default value. If you enter an invalid property the browser just ignores it and uses the default value. It is like if you had commented it out, or never wrote anything for #box-1
, which also passes the test.
It happens because the test is just looking at the computed properties, there is no regex test for the actual string value in the code.