-
Currently, the subheading
Users are probably already accustomed to this designation, but in my opinion it is not entirely correct. “Global” is a word that can be interpreted very broadly, that is, it is not very specific and clear in a given context. Because this section lists the values that are responsible for inheritance:
How do you think? Update As a more general solution instead of current notation (using as example https://developer.mozilla.org/en-US/docs/Web/CSS/direction): we can consider solutions of this kind: But of course, it’s easier at the first step to rename the |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
The official name is CSS-wide property values (https://www.w3.org/TR/css-values/#common-keywords ), and they are used for Explicit defaulting (https://www.w3.org/TR/css-cascade/#defaulting-keywords ). And the So, if we rename them, maybe we should call them CSS-wide property values (there is no guarantee that none will be created for purposes other than inheritance in the future). That said, I'm not convinced we need to rename these sections. |
Beta Was this translation helpful? Give feedback.
-
I manually checked all the places where the /* Global values */ section appears and only the following values are described:
That is, in this section we always describe the properties of inheritance. And also there is no description of the term "Global values". Therefore, I believe that renaming to "Inheritance values" (https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Cascade_and_inheritance#controlling_inheritance) is logical and justified. |
Beta Was this translation helpful? Give feedback.
-
Hello @leon-win, thank you for initiating this discussion. I think it is a fair point. For the sake of comparison, in HTML we have the concept of 'Global attributes' that apply to all HTML elements and they're also referenced by that term in the HTML specification. On HTML element pages, we refer to these attributes using this first sentence in the "Attributes" section: "This element's attributes include the global attributes" (see example). In CSS, like @teoli2003 mentioned, the inheritance values we're discussing are referred to as "CSS-wide keywords", and not "Global", as we currently list them in "Syntax". The "Global values" terminology diverges from the spec - so I agree with you on the use of "Global". Perhaps we can consider aligning the CSS documentation with the HTML documentation in this regard, somewhat similar to your proposal in point 1, that is:
I am also strongly in favor of linking to a single source of truth instead of maintaining the list of keyword values on every single property page or having to add the list to every new property page we create. This ensures that if there is ever a change or addition to the list of keywords (like when I had to add Pinging @estelle to see what she thinks. Thank you again for your valuable input. |
Beta Was this translation helpful? Give feedback.
Thanks @teoli2003 and @estelle for sharing your thoughts! We’re sticking with
Global values
.@leon-win, we hope this decision, through all the viewpoints shared here, addresses your concern.
I'm going to close this one for now. But don't hesitate to start a new thread if you think we missed anything.