Skip to content

Commit f6616d0

Browse files
committed
Address review feedback: integrate into prepare-curated.js and remove scroll-initial-target workaround
1 parent f6860ef commit f6616d0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

tools/add-css-longhands.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,10 +393,6 @@ function extractPropertyRefs(syntax) {
393393
* or have other issues.
394394
*/
395395
const NOT_SHORTHANDS = new Set([
396-
// scroll-initial-target has computedValue: "see individual properties" but is a longhand.
397-
// This was fixed upstream in https://github.com/w3c/csswg-drafts/issues/13425
398-
// TODO: Remove this entry once the fix is published and webref data is updated.
399-
'scroll-initial-target',
400396
// background-tbd is a placeholder property
401397
'background-tbd'
402398
]);

tools/prepare-curated.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
import { applyPatches } from './apply-patches.js';
2929
import { dropCSSPropertyDuplicates } from './drop-css-property-duplicates.js';
3030
import { amendCssSyntaxes } from './amend-css-syntaxes.js';
31+
import { addCssLonghands } from './add-css-longhands.js';
3132
import { curateEvents } from './amend-event-data.js';
3233
import { crawlSpecs } from 'reffy';
3334

@@ -126,6 +127,11 @@ async function prepareCurated(rawFolder, curatedFolder) {
126127
await amendCssSyntaxes(curatedFolder);
127128
console.log('- done');
128129

130+
console.log();
131+
console.log('Add longhands to CSS shorthand properties');
132+
await addCssLonghands(curatedFolder);
133+
console.log('- done');
134+
129135
console.log();
130136
console.log('Run post-processing modules on curated data');
131137
await crawlSpecs({

0 commit comments

Comments
 (0)