CSS: Style inheritance
Instructions
Loading...
Your exercise will be checked with these tests:
const { test } = require('tests');
test(({ query, expect }) => {
const div = query(document, 'div');
const p = query(div, 'p');
const styleDiv = getComputedStyle(div);
expect(styleDiv).to.have.property('font-size', '20px');
const styleP = getComputedStyle(p);
expect(styleP).to.have.property('font-size', '10px');
});
Teacher's solution will be available in:
20:00
