Skip to content

Commit 8745dfb

Browse files
committed
Upgrade dependencies
1 parent dabaf5d commit 8745dfb

File tree

8 files changed

+1659
-340
lines changed

8 files changed

+1659
-340
lines changed

__tests__/style.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3280,11 +3280,17 @@ describe('interest-delay', () => {
32803280
const style = createStyleBlock()
32813281

32823282
// Initial longhand values
3283-
style.interestDelay = 'normal'
3283+
style.interestDelay = 'normal normal'
32843284
expect(style).toHaveLength(longhands.length)
32853285
longhands.forEach(longhand => expect(style[longhand]).toBe(initial(longhand)))
32863286
expect(style.interestDelay).toBe('normal')
32873287
expect(style.cssText).toBe('interest-delay: normal;')
3288+
3289+
// Missing longhand values
3290+
style.interestDelay = 'normal'
3291+
longhands.forEach(longhand => expect(style[longhand]).toBe('normal'))
3292+
expect(style.interestDelay).toBe('normal')
3293+
expect(style.cssText).toBe('interest-delay: normal;')
32883294
})
32893295
test('shorthand reification', () => {
32903296

@@ -3294,11 +3300,6 @@ describe('interest-delay', () => {
32943300
longhands.forEach(longhand => style[longhand] = initial(longhand))
32953301
expect(style.interestDelay).toBe('normal')
32963302
expect(style.cssText).toBe('interest-delay: normal;')
3297-
3298-
// Not all equal longhand values
3299-
style.interestDelayStart = '1s'
3300-
expect(style.interestDelay).toBe('')
3301-
expect(style.cssText).toBe('interest-delay-start: 1s; interest-delay-end: normal;')
33023303
})
33033304
})
33043305
describe('line-clamp', () => {

lib/properties/definitions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3780,7 +3780,7 @@ module.exports = {
37803780
value: 'auto | inert',
37813781
},
37823782
'interest-delay': {
3783-
value: "<'interest-delay-start'>",
3783+
value: "<'interest-delay-start'>{1,2}",
37843784
},
37853785
'interest-delay-end': {
37863786
initial: {
@@ -3999,7 +3999,7 @@ module.exports = {
39993999
},
40004000
serialized: 'none',
40014001
},
4002-
value: 'none | <link-param>+',
4002+
value: 'none | <param()>#',
40034003
},
40044004
'list-style': {
40054005
value: "<'list-style-position'> || <'list-style-image'> || <'list-style-type'>",

lib/serialize.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,16 +2621,6 @@ function representInitialLetter(letter) {
26212621
return [letter]
26222622
}
26232623

2624-
/**
2625-
* @param {object[]} declarations
2626-
* @returns {string[]}
2627-
* @see {@link https://drafts.csswg.org/css-ui-4/#propdef-interest-delay}
2628-
*/
2629-
function representInterestDelay(declarations) {
2630-
const [start, end] = declarations.map(serializeCSSValue)
2631-
return [start === end ? start : '']
2632-
}
2633-
26342624
/**
26352625
* @param {object[]} declarations
26362626
* @param {boolean} [legacy]
@@ -3333,6 +3323,7 @@ function representDeclarationValue({ name, pending, source, value }) {
33333323
case 'inset':
33343324
case 'inset-block':
33353325
case 'inset-inline':
3326+
case 'interest-delay':
33363327
case 'margin':
33373328
case 'margin-block':
33383329
case 'margin-inline':
@@ -3394,8 +3385,6 @@ function representDeclarationValue({ name, pending, source, value }) {
33943385
return representGridLine(declarations)
33953386
case 'grid-template':
33963387
return representGridTemplate(declarations)
3397-
case 'interest-delay':
3398-
return representInterestDelay(declarations)
33993388
case 'line-clamp':
34003389
return representLineClamp(declarations)
34013390
case 'list-style':

lib/values/definitions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,6 @@ module.exports = {
277277
'<linear-easing-function>': 'linear | <linear()>',
278278
'<linear-gradient()>': 'linear-gradient(<linear-gradient-syntax>)',
279279
'<linear-gradient-syntax>': '[[<angle> | <zero> | to <side-or-corner>] || <color-interpolation-method>]? , <color-stop-list>',
280-
'<link-param>': 'param(<custom-property-name> <declaration-value>?)',
281280
'<log()>': 'log(<calc-sum> , <calc-sum>?)',
282281
'<marker-ref>': '<url>',
283282
'<mask-layer>': '<mask-reference> || <position> [/ <bg-size>]? || <repeat-style> || <geometry-box> || [<geometry-box> | no-clip] || <compositing-operator> || <masking-mode>',
@@ -343,6 +342,7 @@ module.exports = {
343342
'<paint>': 'none | <color> | <url> [none | <color>]? | context-fill | context-stroke',
344343
'<palette-identifier>': '<dashed-ident>',
345344
'<palette-mix()>': 'palette-mix(<color-interpolation-method> , [[normal | light | dark | <palette-identifier> | <palette-mix()>] && <percentage [0,100]>?]#{2})',
345+
'<param()>': 'param(<dashed-ident> , <declaration-value>?)',
346346
'<path()>': "path(<'fill-rule'>? , <string>)",
347347
'<percentage>': '<percentage-token>',
348348
'<perspective()>': 'perspective(<length [0,∞]> | none)',
@@ -539,7 +539,7 @@ module.exports = {
539539
'<urange>': "u '+' <ident-token> '?'* | u <dimension-token> '?'* | u <number-token> '?'* | u <number-token> <dimension-token> | u <number-token> <number-token> | u '+' '?'+",
540540
'<uri>': '<url>',
541541
'<url()>': 'url(<string> <url-modifier>*) | <url-token>',
542-
'<url-modifier>': '<request-url-modifier> | <ident> | <function-token> <any-value>? )',
542+
'<url-modifier>': '<request-url-modifier> | <param()> | <ident> | <function-token> <any-value>? )',
543543
'<url-set>': '<image-set()>',
544544
'<url>': '<url()> | <src()>',
545545
'<var()>': 'var(<custom-property-name> , <declaration-value>?)',

lib/values/pseudos.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ const input = [
6060
'read-only',
6161
'read-write',
6262
'required',
63+
'unchecked',
6364
'user-invalid',
6465
'user-valid',
6566
'valid',
@@ -82,7 +83,6 @@ const location = [
8283
'local-link',
8384
'scope',
8485
'target',
85-
'target-within',
8686
'visited',
8787
]
8888

0 commit comments

Comments
 (0)