1

Inspecting medium.com css I noticed this rules:

--x-height-multiplier: 0.375;
--baseline-multiplier: 0.17;

what are those -- before x-height-multiplier? What are these two rules? I tried to change them with no visible effect at all.

enter image description here

steo
  • 4,586
  • 2
  • 33
  • 64

1 Answers1

0

Double dash represents CSS Variable. Refer Link.

CSS Variable Spec at Mozilla

CSS Variable Usage at CSS Tricks

Selvam Elumalai
  • 693
  • 7
  • 22
  • to be more precise in this particular case, it's about Custom Properties, `var()` is not used here – Temani Afif Jun 04 '18 at 10:59
  • While declaring a CSS variable, `var()` is not required, it required only when using the variable – Selvam Elumalai Jun 04 '18 at 11:02
  • you dont' understand me :) ... the `--xx` alone is called a custom property and is used to define CSS variable ... read the first sentence of the link your provided : `They are set using custom property notation` – Temani Afif Jun 04 '18 at 11:04