Hey.

CSS question. Appendix D of the CSS standard specifies default styles - https://www.w3.org/TR/CSS21/sample.html#q22.0 . That is, the browser itself writes the style file itself (into which it writes the content https://www.w3.org/TR/CSS21/sample.html#q22.0 ) and connects it to the document.

On the other hand, there is also an application F in the CSS standard (full property table) - https://www.w3.org/TR/CSS21/propidx.html#q24.0 . There is a column in the table "Initial value" (initial value), which, in theory, is assigned to the property, if this property is not set.

Consider the option that author styles are NOT specified at all, that is, I do not include the style file, do not write the element, and there are no inline styles. I do not understand how the element gains its default properties using these two applications D and F. Do they somehow overlap each other? As far as I understand, for any element all properties are set at all that can be set to it, even if I didn’t set anything at all - default properties .

The question is that I do not fully understand how that set of CSS properties, which I see in browser devuls, is obtained. for example, I click on the paragraph element in the "elements" tab, below are the properties

The styles tab of the element is drawn in the styles tab, and properties are listed below. VERY MANY properties. Some of the properties have a triangle on the left - you can open it and see where the property is set, and the remaining properties look for a dim color, which the programmer asked with his hands.

That is, it turns out that the browser initially takes an element and assigns all the POSSIBLE properties from the table-application F ( https://www.w3.org/TR/CSS21/propidx.html#q24.0 ), then the browser itself WRITE hand styles from the application D of the standard CSS styles by default ( https://www.w3.org/TR/CSS21/sample.html#q22.0 ) and connects them to the document, and only then the author styles are superimposed on this cake programmer who are written in a document or are connected from the outside.

Do I understand correctly or not?

  • The application is informative, but not normative - what does this mean? - Dimon
  • one
    This means that it is provided for information, as an example, but does not mean that all browsers will follow it, that is, specific default styles will depend on the specific implementation of a specific browser - Grundy

0