1.1 KiB
1.1 KiB
id | title | challengeType | dashedName |
---|---|---|---|
5d822fd413a79914d39e98ce | Step 6 | 0 | step-6 |
--description--
Imposta anche box-sizing
su border-box
per tutti gli elementi. In questo modo, il bordo che hai aggiunto non aumenterà la dimensione degli elementi.
--hints--
Dovresti usare la proprietà box-sizing
.
assert(new __helpers.CSSHelp(document).isPropertyUsed('box-sizing'));
Dovresti utilizzare il selettore *
esistente.
// Two selectors create two CSSStyleRule objects
assert.equal(new __helpers.CSSHelp(document).getStyleDeclarations('*').length, 1);
Tutti gli elementi dovrebbero avere una proprietà box-sizing
con il valore border-box
.
const astStyles = new __helpers.CSSHelp(document).getStyle('*');
assert.equal(astStyles.boxSizing, 'border-box');
--seed--
--seed-contents--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>City Skyline</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
</body>
</html>
--fcc-editable-region--
* {
border: 1px solid black;
}
--fcc-editable-region--