Conversation
|
Preview URLs Flaws (3)URL:
(this comment was updated 2022-10-25 21:48:51.732419) |
Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
|
You can include a formal syntax section using something like: (see, for example, http://localhost:5042/en-US/docs/Web/CSS/alpha-value.) |
wbamberg
left a comment
There was a problem hiding this comment.
Thanks for your PR, @ramiy ! I wasn't sure whether @bsmth was on this one, but since it's been quiet for a little while...
I think this page needs an H3 "Values" immediately before the H3 "Formal syntax". This "Values" should be a Markdown <dl> listing all the values this type can be, in alphabetical order.
I think that would make this bit:
- `e` is the base of the natural logarithm, approximately equal to `2.7182818284590452354`.
- `pi` is the ratio of a circle's circumference to its diameter, approximately equal to `3.1415926535897932`.
...redundant.
I also think all of the bit at the start, from "Rather than" to the H2 "Syntax", should go in an H2 "Description". But see also my comment on that section: we don't just want to copy/paste the spec into MDN.
estelle
left a comment
There was a problem hiding this comment.
A few suggestions to reduce the reading level required and make clearer that NaN has to be written case exact.
|
Should we include a like to the definitions of pi, infinity, e, and NaN, either in the content or in the see also? |
Co-authored-by: Estelle Weyl <estelle@openwebdocs.org>
In other math functions we linked to Wikipedia definitions, not in "see also" section. |
Co-authored-by: wbamberg <will@bootbonnet.ca>
|
@wbamberg would you mind taking another look? |
|
@bsmth I added your changes to this PR and then added few more stuff. You ran over them... |
|
@bsmth Please use GitHub suggestions. Let's discuss them here before merging to the PR. |
|
Hi @ramiy, myself and Will are in agreement about removing the section headings. Please refer to the template page structure for documenting CSS properties under our writing guidelines. The changes required for this PR to land are that the headings should be removed and the content under these headings should be incorporated elsewhere in the document.
For a hint on making these changes, have a look at my previous commit. |
|
Moving those sections to the intro / syntax mixes different aspects. I think it will be better to leave all the content in "Description", removing all the H3 headings - just like Will initially suggested. |
|
Hi Ramiy,
Yes that would help us to get your changes merged, thank you |
|
Ok, looks good. Let's merge. |
|
Thanks all for the contribution & reviews |
Description
Document the CSS
<calc-constant>data type.Motivation
This data type will help us document the new CSS constants -
e|pi|infinity|-infinity|NaNRelated issues and pull requests
mdn/browser-compat-data#17828