You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 1st paragraph of the §6. Cascading in both Level 4 and Level 5 states (emphasis mine):
The cascade takes an unordered list of declared values for a given property on a given element, sorts them by their declaration’s precedence as determined below, and outputsa single cascaded value.
At the same time, the last paragraph of §6.1. Cascade Sorting Order says that
The output of the cascade is a (potentially empty) sorted list of declared values for each property on each element.
These statements seem to contradict each other, which is confusing. Are "the output of the cascade" and the thing that "the cascade outputs" not the same thing? Shouldn't this be clarified for consistency?
The text was updated successfully, but these errors were encountered:
SelenIT
changed the title
[css-cascade] Apparent contradiсtion between definitions of the cascade and the output of the cascade
[css-cascade] Apparent contradiсtion between definitions of "the cascade" and "the output of the cascade"
Jan 28, 2022
Yes, "cascaded value" and "output of the cascade" are not the same thing. If you follow the "cascaded value" link to its definition, you see:
The cascaded value represents the result of the cascade: it is the declared value that wins the cascade (is sorted first in the output of the cascade). If the output of the cascade is an empty list, there is no cascaded value.
The "output of the cascade" is a list; the "cascaded value" is one of the items in that list, or nothing if it's empty.
That said, the wording there is indeed somewhat confusing. Ideas, @fantasai?
The 1st paragraph of the §6. Cascading in both Level 4 and Level 5 states (emphasis mine):
At the same time, the last paragraph of §6.1. Cascade Sorting Order says that
These statements seem to contradict each other, which is confusing. Are "the output of the cascade" and the thing that "the cascade outputs" not the same thing? Shouldn't this be clarified for consistency?
The text was updated successfully, but these errors were encountered: