Skip to content

Latest commit

 

History

History
32 lines (31 loc) · 743 Bytes

exercise5.md

File metadata and controls

32 lines (31 loc) · 743 Bytes

Compute the specificity scores

  1. * { } * 0
  2. li { } * 1 (one element)
  3. li:first-line { } * 2 (element + pseudo-element)
  4. ul li { } * 2 (two elements)
  5. ul ol+li { } * 3 (three elements)
  6. h1 + *[rel=up] { } * 11 (one attribute, one element)
  7. ul ol li.red { } * 13 (one class, three elements)
  8. li.red.level { } * 21 (two classes, one element)
  9. style="" * 1000 (one inline styling)
  10. p { } * 1 (one element)
  11. div p { } * 2 (two elements)
  12. .sith * 10 (one class)
  13. div p.sith { } * 12 (two elements and a class)
  14. #sith * 100 (one id)
  15. body #darkside .sith p { } * 112 (element, ID, class, element)