Skip to content

Conversation

tidoust
Copy link
Member

@tidoust tidoust commented Jan 21, 2025

The script that drops duplicate CSS properties in known superseded specs did not follow the exact same file naming logic as that followed by the crawler. It took for granted that the file had to be the spec's shortname if the spec wasn't the current specification, but the logic followed by the crawler is rather that defined in isLatestLevelThatPasses: the latest full level that defines some CSS is the one that provides the series CSS extract.

This nuance had never led to any problem in this part of the code because a spec that defines superseded content typically does not have a "next" level that is not the current level and that keeps on defining the superseded content. Copying the superseded content to a newer level does not make sense, right? Well, that's what css-multicol-2 currently does.

This update fixes the file naming logic, which should have followed that of the crawler in any case.

The script that drops duplicate CSS properties in known superseded specs did
not follow the exact same file naming logic as that followed by the crawler.
It took for granted that the file had to be the spec's shortname if the spec
wasn't the current specification, but the logic followed by the crawler is
rather that defined in `isLatestLevelThatPasses`: the latest full level that
defines some CSS is the one that provides the series CSS extract.

This nuance had never led to any problem in this part of the code because a
spec that defines superseded content typically does not have a "next" level
that is not the current level and that keeps on defining the superseded
content. Copying the superseded content to a newer level does not make sense,
right? Well, that's what `css-multicol-2` currently does.

This update fixes the file naming logic, which should have followed that of the
crawler in any case.
@tidoust tidoust requested a review from dontcallmedom January 21, 2025 08:05
Copy link
Member

@dontcallmedom dontcallmedom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creativity++

@tidoust tidoust merged commit 34cdac9 into main Jan 21, 2025
1 check passed
@tidoust tidoust deleted the fix-drop-css-dupl branch January 21, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants