Is it possible to get a hint on a exercise #471
-
Is it possible to get a hint on how to solve exercises? Currently, I'm struggling a little bit with the Shorthand properties in https://browser.engineering/styles.html#exercises |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sure, happy to give a hint. There are a couple of steps you will need to do in this exercise. First, you'll need to change the parser so that |
Beta Was this translation helpful? Give feedback.
Sure, happy to give a hint. There are a couple of steps you will need to do in this exercise. First, you'll need to change the parser so that
font: bold italic 100% Times
can be parsed. That involves changingCSSParser.pair
. Then, once you can parse it, you'll want to treat this shorthand property as if it were multiple pairs, likefont-weight: bold; font-style: italic; font-size: 100%; font-family: Times
. That involves changingCSSParser.body
.