CSS Grid L2 (WD 2018-04-27) added aspect-ratio

This commit is contained in:
tophf 2018-04-28 10:17:16 +03:00
parent fbdfc68022
commit f9dd704134

View File

@ -73,6 +73,8 @@ self.parserlib = (() => {
dpi: 'resolution', dpi: 'resolution',
dpcm: 'resolution', dpcm: 'resolution',
ar: 'dimension',
}; };
//endregion //endregion
@ -627,6 +629,8 @@ self.parserlib = (() => {
'<angle>': part => part.type === 'angle', '<angle>': part => part.type === 'angle',
'<aspect-ratio>': part => part.units && lower(part.units) === 'ar',
'<attr-fallback>': part => !/\battr\(/i.test(part.text), '<attr-fallback>': part => !/\battr\(/i.test(part.text),
'<attachment>': 'scroll | fixed | local', '<attachment>': 'scroll | fixed | local',
@ -843,6 +847,7 @@ self.parserlib = (() => {
complex: { complex: {
'<align-content>': 'normal | <baseline-position> | <content-distribution> | ' + '<align-content>': 'normal | <baseline-position> | <content-distribution> | ' +
'<aspect-ratio> <content-distribution>? | ' +
'<overflow-position>? <content-position>', '<overflow-position>? <content-position>',
'<align-self>': 'auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>', '<align-self>': 'auto | normal | stretch | <baseline-position> | <overflow-position>? <self-position>',
@ -958,8 +963,8 @@ self.parserlib = (() => {
'<grid-template-columns>': 'none | <track-list> | <auto-track-list>', '<grid-template-columns>': 'none | <track-list> | <auto-track-list>',
'<grid-template-rows>': '<grid-template-columns>', '<grid-template-rows>': '<grid-template-columns>',
'<justify-content>': 'normal | <content-distribution> | <overflow-position>? ' + '<justify-content>': 'normal | <content-distribution> | <aspect-ratio> <content-distribution>? | ' +
'[ <content-position> | left | right ]', '<overflow-position>? [ <content-position> | left | right ]',
'<justify-self>': 'auto | normal | stretch | <baseline-position> | <overflow-position>? ' + '<justify-self>': 'auto | normal | stretch | <baseline-position> | <overflow-position>? ' +
'[ <self-position> | left | right ]', '[ <self-position> | left | right ]',