Re: [csswg-drafts] [css-values] Traditional absolute length units (#315)

If #7379 gets adopted:

~~~~ css
/** General metric units */
@property --m {
  /* ‘meter’ */
  syntax: "<length>";
  initial: 100cm;
  inherits: true;
}
@property --dm {
  /* ‘decimeter’ */
  syntax: "<length>";
  initial: 10cm;
  inherits: true;
}
@property --mu {
  /* ‘micrometer’ */
  syntax: "<length>";
  initial: 0.001mm;
  inherits: true;
}

/** Typographic metric units */
@property --cc {
  /* ‘cicero’ */
  syntax: "<length>";
  initial: 12--dd;
  inherits: true;
}
@property --dd {
  /* ‘DIN Didot point’ */
  syntax: "<length>";
  initial: 0.376065mm;
  /* Berthold: calc(5cm / 133),
     French: calc(15625mm / 41559)  */
  inherits: true;
}
@property --nd {
  /* ‘new, metric Didot point’ */
  syntax: "<length>";
  initial: 0.375mm;
  inherits: true;
}
@property --dt {
  /* ‘anglicized Didot point’ */
  syntax: "<length>";
  initial: calc(16pt / 15);
  inherits: true;
}

@property --fp {
  /* ‘Fournier point’ */
  syntax: "<length>";
  initial: calc(11--dd / 12);
  /* 0.34875mm */
  inherits: true;
}
@property --tp {
  /* ‘Truchet point’ */
  syntax: "<length>";
  initial: calc(1--dd / 2);
  /* calc(15625mm / 83118)  */
  inherits: true;
}

/** General English units */
@property --yd {
  /* ‘yard’ */
  syntax: "<length>";
  initial: 36in;
  inherits: true;
}
@property --ft {
  /* ‘foot’ */
  syntax: "<length>";
  initial: 12in;
  inherits: true;
}
@property --hd {
  /* ‘hand’ */
  syntax: "<length>";
  initial: 4in;
  inherits: true;
}

/** Fractional English units */
@property --sx {
  /* ‘sixteenth-inch’ or ‘six-pixel’ */
  syntax: "<length>";
  initial: 6px; /* = calc(1in / 16) */
  inherits: true;
}
@property --tx {
  /* ‘thirtysecondth-inch’ or ‘three-pixel’ */
  syntax: "<length>";
  initial: 3px; /* = calc(1in / 32) */
  inherits: true;
}
@property --twip {
  /* ‘twentieth-point’ */
  syntax: "<length>";
  initial: 0.05pt;
  inherits: true;
}
@property --tex {
  /* ‘TeX point’ */
  syntax: "<length>";
  initial: calc(100in / 7227);
  inherits: true;
}

/** Common anchor unit */
@property --dot {
  /* alias ‘gcd’, ‘emu’ */
  syntax: "<length>";
  initial: calc(1pt / 508);
  inherits: true;
}

/** Relative units */
@property --en {
  syntax: "<length>";
  initial: 0.5em; /* 1ex has the same fallback value */
  inherits: true;
}
~~~~

-- 
GitHub Notification of comment by Crissov
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/315#issuecomment-1460282182 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 8 March 2023 14:53:47 UTC