Skip to content

Commit 28c31d4

Browse files
committed
Extend <display-inside> with math | layout(<ident>)
w3c/csswg-drafts/issues#9399 w3c/css-houdini-drafts/issues#1074
1 parent 3932293 commit 28c31d4

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

lib/properties/definitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2725,7 +2725,7 @@ module.exports = {
27252725
),
27262726
serialized: 'inline',
27272727
},
2728-
value: '<display-outside> || <display-inside> | <display-listitem> | <display-internal> | <display-box> | <display-legacy> | <display-outside> || [<display-inside> | math]',
2728+
value: '<display-outside> || <display-inside> | <display-listitem> | <display-internal> | <display-box> | <display-legacy>',
27292729
},
27302730
'dominant-baseline': {
27312731
initial: {

lib/values/definitions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module.exports = {
148148
'<dimension>': '<dimension-token>',
149149
'<discretionary-lig-values>': 'discretionary-ligatures | no-discretionary-ligatures',
150150
'<display-box>': 'contents | none',
151-
'<display-inside>': 'flow | flow-root | table | flex | grid | ruby',
151+
'<display-inside>': 'flow | flow-root | table | flex | grid | ruby | math | layout(<ident>)',
152152
'<display-internal>': 'table-row-group | table-header-group | table-footer-group | table-row | table-cell | table-column-group | table-column | table-caption | ruby-base | ruby-text | ruby-base-container | ruby-text-container',
153153
'<display-legacy>': 'inline-block | inline-table | inline-flex | inline-grid',
154154
'<display-listitem>': '<display-outside>? && [flow | flow-root]? && list-item',

scripts/extract.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ const replaced = {
113113
types: {
114114
// Extensions (https://github.com/w3c/reffy/issues/1647)
115115
'<color>': '<color-base> | currentColor | <system-color> | <contrast-color()> | <device-cmyk()> | <light-dark()> | <color-interpolate()>',
116+
'<display-inside>': 'flow | flow-root | table | flex | grid | ruby | math | layout(<ident>)',
116117
'<keyframe-selector>': 'from | to | <percentage [0,100]> | <timeline-range-name> <percentage>',
117118
'<image>': '<url> | <image()> | <image-set()> | <cross-fade()> | <element()> | <gradient> | <paint()>',
118119
'<single-animation-timeline>': 'auto | none | <dashed-ident> | <pointer()> | <scroll()> | <view()>',
@@ -452,6 +453,10 @@ const excluded = {
452453
// Prefer SVG
453454
'pointer-events',
454455
],
456+
'mathml-core': [
457+
// https://github.com/w3c/csswg-drafts/issues/9399, https://github.com/w3c/css-houdini-drafts/issues/1074
458+
'display',
459+
],
455460
},
456461
rules: {},
457462
selectors: {

0 commit comments

Comments
 (0)