mosaic-headless 1.35.0 → 1.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/SKILL.md CHANGED
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: "mosaic-headless"
3
3
  description: |
4
- Build and modify Mosaic Pro (Nextend) WordPress sites by writing the data model directly - no visual editor, no DOM. Query the real surface with `mo.py` (129 node types, 196 node properties, 101 style properties, 57 style states, 157 variants, 75 dynamic variables, 16 interaction triggers, 115 REST routes) where every lookup leads with the measured verdict, not the declaration: each node type placed on a live site one at a time, each style and node property swept against compiled CSS and markup, the delivered pages re-read in Chromium at three viewports. Measured on Mosaic Pro 1.0.10: the popover (anchored or screen-placed, the flip state, afterClose-chained tours), the modal on the Popover API, OpenStreetMap, exit-intent and scroll-depth triggers, run rules and memory. Drives theme export/import and the 1.0.7 -> 1.0.10 data upgrades from outside wp-admin; re-extracted and re-verified on 1.0.11.
4
+ Build and modify Mosaic Pro (Nextend) WordPress sites by writing the data model directly - no visual editor, no DOM. Query the real surface with `mo.py` (134 node types, 201 node properties, 101 style properties, 60 style states, 157 variants, 75 dynamic variables, 16 interaction triggers, 115 REST routes) where every lookup leads with the measured verdict, not the declaration: each node type placed on a live site one at a time, each style and node property swept against compiled CSS and markup, the delivered pages re-read in Chromium at three viewports. Measured on Mosaic Pro 1.0.10: the popover (anchored or screen-placed, the flip state, afterClose-chained tours), the modal on the Popover API, OpenStreetMap, exit-intent and scroll-depth triggers, run rules and memory. Drives theme export/import and the 1.0.7 -> 1.0.10 data upgrades from outside wp-admin; re-extracted and re-verified on 1.0.11 and 1.0.12 (the buildable Select).
5
5
  license: "MIT"
6
6
  metadata:
7
7
  author: "moksa (https://moksaweb.com)"
8
- version: "1.35.0"
8
+ version: "1.36.0"
9
9
  homepage: "https://github.com/Moksa1123/mosaic-headless"
10
10
  ---
11
11
 
@@ -159,23 +159,25 @@ native path was checked and why it falls short.
159
159
  ## What was verified, and how
160
160
 
161
161
  Everything ran against a live install: WordPress 7.1, WooCommerce 11.1,
162
- Mosaic Pro 1.0.11, **unlicensed** — the licence gates the theme library and updates,
162
+ Mosaic Pro 1.0.12, **unlicensed** — the licence gates the theme library and updates,
163
163
  not the node factories, so the Pro types register and render regardless. The
164
- site was built on 1.0.7 and upgraded in place four times: every data migration
165
- (`tools/data_upgrade.py`) ran over the real theme (1.0.11 has none), the source
166
- tables were re-extracted from 1.0.11, and every demo verifier and the full node
167
- sweep (128 of 129 types, `document` excluded because its probe wrecks the master)
168
- were re-run on the result, so the tables describe 1.0.11 as delivered, not as
169
- declared. Where a row is still an older measurement - the property sweeps - the
170
- section says so. 1.0.11 swapped the Free/Pro split (`references/upgrading.md`).
164
+ site was built on 1.0.7 and upgraded in place five times: every data migration
165
+ ran over the real theme (1.0.11 has none; 1.0.12's Select split ran by itself in
166
+ the background), the source tables were re-extracted from 1.0.12, every demo
167
+ verifier was re-run on the result, and the node sweep covers 133 of 134 types
168
+ (`document` excluded because its probe wrecks the master; the seven Select and
169
+ List box types swept on 1.0.12, the rest on 1.0.11), so the tables describe 1.0.12
170
+ as delivered, not as declared. Where a row is still an older measurement - the property sweeps - the
171
+ section says so. 1.0.11 swapped the Free/Pro split and 1.0.12 replaced the native
172
+ select (`references/upgrading.md`).
171
173
 
172
174
  ```
173
175
  WRITE PATH verified end to end over REST
174
176
  theme -> master -> healed node tree -> template -> nodes -> public HTML
175
177
 
176
- NODE SWEEP 129 of 129 node types, ONE PER DOCUMENT, committed then rendered then
178
+ NODE SWEEP 134 of 134 node types, ONE PER DOCUMENT, committed then rendered then
177
179
  deleted, asserting each type's attrID against the delivered HTML:
178
- RENDERED 77 id found; tag and classes recorded
180
+ RENDERED 82 id found; tag and classes recorded
179
181
  COMMITTED 25 row exists, nothing reached the page
180
182
  COMMIT_5xx 15 PHP fatal on commit
181
183
  BROKE_PAGE 12 committed, then the whole page died
@@ -275,17 +277,16 @@ PROPERTIES 170 probes over the declared property surface, each value asserted
275
277
  against the delivered markup and the compiled CSS separately.
276
278
  data/property-verification.csv
277
279
 
278
- STATES 52 of the 53 style states written to a live page and matched against
279
- the selector `data/style-states.csv` promises: 36 COMPILED exactly,
280
- 13 NO_HOST (their node type cannot be committed safely), 3 SKIPPED,
281
- 0 BROKE_PAGE on 1.0.8 (the one host that broke the page on 1.0.7
282
- now refuses to commit alone, so it is NO_HOST). All seven globally usable states verified - and the
283
- pseudo-classes are emitted UPPERCASE (`._j:HOVER`), so grepping a
284
- stylesheet for `:hover` finds nothing. data/style-state-verification.csv
285
- The table now lists 57: v1.34's extractor also reads selector lists
286
- spelt `implode(',', array(…))`, which adds
287
- ___accordion-item--opened/--opening and ___dropdown--opened - read
288
- from source, not yet swept.
280
+ STATES 59 of the 60 style states written to a live page on 1.0.12 and
281
+ matched against the selector `data/style-states.csv` promises:
282
+ 39 COMPILED exactly, 15 NO_HOST (their node type cannot be committed
283
+ safely), 4 SKIPPED, 1 ABSENT (`___select--opened`: a `select` only
284
+ renders inside a `field`, and the probe host is a bare div). The new
285
+ Select's option states (--active, --selected, --in-toggle) and
286
+ ___listbox-option compiled. All seven globally usable states verified
287
+ - and the pseudo-classes are emitted UPPERCASE (`._j:HOVER`), so
288
+ grepping a stylesheet for `:hover` finds nothing.
289
+ data/style-state-verification.csv
289
290
 
290
291
  COMPONENTS used on the example page: the service row is committed ONCE to the
291
292
  theme and the page places four instances of it, each carrying only the
@@ -442,10 +443,10 @@ UPGRADE 1.0.7 -> 1.0.8 driven over the plugin's own milestone route from
442
443
  one selector on the worked example that named an emitted class
443
444
  stopped matching until it was rewritten. references/upgrading.md
444
445
 
445
- FROM SOURCE 129 node types, 196 properties (68 with enums), 285 pluggable IDs,
446
- 129 placement rules, 25 composite default structures (10 declared,
447
- 15 healed in), 101 style properties, 57 style states, 16 interaction
448
- triggers - re-extracted from the 1.0.11 tree.
446
+ FROM SOURCE 134 node types, 201 properties (68 with enums), 285 pluggable IDs,
447
+ 134 placement rules, 27 composite default structures (10 declared,
448
+ 17 healed in), 101 style properties, 60 style states, 16 interaction
449
+ triggers - re-extracted from the 1.0.12 tree.
449
450
  ```
450
451
 
451
452
  **Coverage, stated as a fraction rather than as a headline.** The verification
@@ -453,7 +454,7 @@ counts above are real, but they are not the same as "the surface is verified", a
453
454
  the difference is worth being exact about:
454
455
 
455
456
  ```
456
- node types 129 / 129 swept live, one per document
457
+ node types 134 / 134 swept live, one per document
457
458
  node properties 191 / 196 re-probed with a value shaped by each property's
458
459
  own validator chain: 39 APPLIED, 45 NO_EFFECT,
459
460
  2 EDITOR_ONLY, 55 NO_HOST (no rendering type
@@ -592,14 +593,14 @@ variable's `customProperty` is optional.
592
593
 
593
594
  | file | rows | source |
594
595
  |---|---|---|
595
- | `data/node-verification.csv` | 129 | **swept live** — outcome, rendered tag and classes, page bytes, failure detail |
596
- | `data/node-types.csv` | 129 | source — slug, label, edition, aliases, data class |
597
- | `data/node-properties.csv` | 196 | source — property, validator chain, **accepted enum values**, `supportsInherit` |
598
- | `data/placement-rules.csv` | 129 | source — which children each type accepts |
596
+ | `data/node-verification.csv` | 134 | **swept live** — outcome, rendered tag and classes, page bytes, failure detail |
597
+ | `data/node-types.csv` | 134 | source — slug, label, edition, aliases, data class |
598
+ | `data/node-properties.csv` | 201 | source — property, validator chain, **accepted enum values**, `supportsInherit` |
599
+ | `data/placement-rules.csv` | 134 | source — which children each type accepts |
599
600
  | `data/default-children.csv` | 25 | source — what a composite type needs **inside** it |
600
601
  | `data/style-properties.csv` | 98 | source — every settable CSS property and its value shape |
601
602
  | `data/style-value-shapes.csv` | 22 | **probed live** — the exact JSON shape for each structured value, and what it compiled to |
602
- | `data/style-states.csv` | 57 | source — state IDs with their exact CSS selector templates |
603
+ | `data/style-states.csv` | 60 | source — state IDs with their exact CSS selector templates |
603
604
  | `data/property-verification.csv` | 170 | **probed live** — per-property effect on markup vs CSS, with unprovable enums marked INCONCLUSIVE |
604
605
  | `data/node-property-verification.csv` | 191 | **swept live** — each property probed with a value shaped by its own validator chain, on a type that declares it |
605
606
  | `data/style-verification.csv` | 101 | **swept live** — every style property written to a page and checked against the compiled CSS, with its group beside the result |
@@ -607,8 +608,8 @@ variable's `customProperty` is optional.
607
608
  | `data/browser-verification/` | 4132 | **computed in Chromium** - declared vs `getComputedStyle` at three viewports, `not-comparable` labelled per row. One CSV per page, named by its slug |
608
609
  | `data/design-audit-acknowledged.csv` | 3 | reviewed findings that will not be fixed, each with a written reason. An acknowledgement without a reason is a suppression wearing a better name, and the release gate refuses one |
609
610
  | `data/design-audit.csv` | 26 | **computed in Chromium** - contrast, font fallback, CJK tracking, overflow, measure. Empty means it ran and found nothing |
610
- | `data/data-class-hierarchy.csv` | 126 | source - every data class and its parent, so a type's inherited properties can be resolved |
611
- | `data/style-state-verification.csv` | 52 | **swept live** - each state written on a host of its own type and matched against its promised selector |
611
+ | `data/data-class-hierarchy.csv` | 131 | source - every data class and its parent, so a type's inherited properties can be resolved |
612
+ | `data/style-state-verification.csv` | 59 | **swept live** - each state written on a host of its own type and matched against its promised selector |
612
613
  | `data/component-verification.csv` | 8 | **driven live** - the component lifecycle, each step asserted against the row or the delivered HTML |
613
614
  | `data/loop-verification.csv` | 28 | **measured live** - a perpetual animation: periodicity by scrubbing a paused timeline, per-element occlusion of both text and controls at five widths, and the enlarged view opened by pointer and by keyboard |
614
615
  | `data/accordion-verification.csv` | 7 | **driven live** - the accordion family nested the way its factory requires, against the guard that refuses it unparented. Resolves two BROKE_PAGE rows |
@@ -623,8 +624,8 @@ variable's `customProperty` is optional.
623
624
  | `data/popover-verification.csv` | 37 | **driven live** - 1.0.10's popover: every host a `<div popover=manual>`, a pageLoad notice that leaves the page scrollable and clickable, closedby honoured per policy, anchored placement against the trigger and against another element, the nine screen cells, keepInView flipping and the `___popover--flipped` state applying, a three-step tour advanced by afterClose and ended by interactionSuspend, and a modal whose host sets `display:flex` and still hides when closed |
624
625
  | `data/token-verification.csv` | 15 | **driven live** - every `:root` custom property declared once, non-empty, and resolved by something on the page; a token nothing points at is a token that is not working |
625
626
  | `data/mobile-audit.csv` | 68 | **driven live** - what a sideways-scroll check cannot see: type under the legible floor, controls too small to hit, a grid that never collapsed, content escaping its box |
626
- | `data/component-wall-verification.csv` | 26 | **driven live** - tabs switched, an accordion opened, a form's fields and Mosaic's own honeypot, and an OpenStreetMap asserted on the coordinates it was GIVEN rather than the default it falls back to |
627
- | `data/form-surface-verification.csv` | 18 | **driven live** - every field type Mosaic ships in one form: select with labelled options, radio and checkbox groups, file upload, and the browser's own validation refusing an empty submit |
627
+ | `data/component-wall-verification.csv` | 27 | **driven live** - tabs switched, an accordion opened, a form's fields and Mosaic's own honeypot, and an OpenStreetMap asserted on the coordinates it was GIVEN rather than the default it falls back to |
628
+ | `data/form-surface-verification.csv` | 23 | **driven live** - every field type Mosaic ships in one form: 1.0.12's buildable select opened, picked by click and by keyboard, its hidden input's value and its required state, radio and checkbox groups, file upload, and the browser's own validation refusing an empty submit |
628
629
  | `data/content-loop-verification.csv` | 15 | **driven live** - a slider, a tab bar, a list and a paginated archive whose children all come from one authored template repeated per post; the pagination is clicked and the rows asserted to CHANGE |
629
630
  | `data/custom-fields-verification.csv` | 62 | **rendered live** - ACF and Meta Box fields of every common type read back through `@VAR` / `@LOOP` off the delivered page, loops included |
630
631
  | `data/theme-zip-verification.csv` | 22 | **round-tripped live** - Mosaic's own ZIP export imported in test mode and compared to its source, table by table and tree by tree |
@@ -1108,7 +1109,7 @@ python tools/sweep_style_properties.py --config sweep.json --page moksa --csv da
1108
1109
  python tools/sweep_node_properties.py --config sweep.json --page moksa --csv data/node-property-verification.csv
1109
1110
  python tools/sweep_style_states.py --config sweep.json --post 20 --slug probe-lab --csv data/style-state-verification.csv
1110
1111
  python tools/sweep_interactions.py --config sweep.json --post 20 --slug probe-lab --csv data/interaction-verification.csv
1111
- python tools/verify_recipes.py --config sweep.json --post 21 --slug probe-recipes --csv data/tutorial-recipes-verification.csv
1112
+ python tools/verify_recipes.py --config sweep.json --post <ID of the probe-recipes page> --slug probe-recipes \n --csv data/tutorial-recipes-verification.csv # --post REBINDS that post's template: check the ID first
1112
1113
  python tools/verify_loop.py --url https://site/ --window mk-loop --toggle mk-plate-title --panel mk-plate-item \
1113
1114
  --parts ukw-sky,ukw-sun,ukw-fuji,ukw-mist,ukw-sea,ukw-crest,ukw-boat,ukw-wave,ukw-claw,ukw-swell,ukw-key,mk-loop-seal \
1114
1115
  --period 14000 --csv data/loop-verification.csv
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.35.0"
23
+ "version": "1.36.0"
24
24
  },
25
25
  "loaderBehaviour": "Upload via Settings -> Skills -> Upload. Claude.ai parses SKILL.md frontmatter and surfaces the skill in your library. The extraction tool (extract-block-schema.php) needs a live WP-CLI connection and won't run in the sandbox; use it from a local terminal against your own site instead.",
26
26
  "uploadSteps": [
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.35.0"
23
+ "version": "1.36.0"
24
24
  },
25
25
  "loaderBehaviour": "Auto-loads on session start when SKILL.md frontmatter parses successfully.",
26
26
  "verified": true,
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.35.0"
23
+ "version": "1.36.0"
24
24
  },
25
25
  "loaderBehaviour": "Confirmed (2026-07-11): Codex CLI natively supports the SKILL.md spec. Place SKILL.md under .codex/skills/<name>/ (project) or ~/.codex/skills/<name>/ (personal) and Codex loads the name+description at session start, then the full body on demand. A parallel, broader convention .agents/skills/ (searched from cwd up to repo root, then ~/.agents/skills/) also exists across multiple tools - if your Codex CLI version prioritizes that path instead, mirror the same SKILL.md there.",
26
26
  "verified": true,
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.35.0"
23
+ "version": "1.36.0"
24
24
  },
25
25
  "loaderBehaviour": "CHANGED as of 2026-07-11: GitHub Copilot added a proper '.github/skills/' Agent Skills directory (December 2025), alongside the older single-file .github/copilot-instructions.md convention. This config targets the new skills-directory form. If your Copilot version predates this (pre Dec 2025), use the instructions-append fallback instead (see fallback below).",
26
26
  "fallback": {
@@ -20,7 +20,7 @@
20
20
  "description": "Build and modify Mosaic Pro (Nextend) sites by writing the underlying data model directly - no visual editor, no DOM. Query the real surface (122 node types, 181 node properties, 101 style properties, 53 style states, 151 element classes, 74 dynamic variables, 114 REST routes, 23 tables) instead of guessing, with every node type placed on a live site one at a time and asserted against the delivered HTML, every style and node property swept against the compiled CSS and markup, and 569 responsive declarations checked against the stylesheet the site actually served.",
21
21
  "license": "MIT",
22
22
  "author": "moksa (https://moksaweb.com)",
23
- "version": "1.35.0"
23
+ "version": "1.36.0"
24
24
  },
25
25
  "loaderBehaviour": "CHANGED as of 2026-07-11: Gemini CLI now natively supports the same SKILL.md standard as Claude Code and Codex CLI - the same directory-based skill works unmodified. Gemini CLI discovers skills in this precedence order: built-in, extension skills, ~/.gemini/skills/ (personal), .gemini/skills/ (project, shared via version control). At session start Gemini injects each discovered skill's name+description into the system prompt and calls activate_skill when a task matches.",
26
26
  "verified": true,
@@ -9,6 +9,7 @@ FORM/fields,PASS,"3 controls, types: email, text, textarea"
9
9
  FORM/required,PASS,required is set on 3 of them
10
10
  FORM/honeypot,PASS,"Mosaic adds its own spam trap: ['mosaic_hp_url', 'mosaic_hp_ts']"
11
11
  FORM/option_labels,SKIPPED,no select on this form
12
+ FORM/select,SKIPPED,no custom select on this form
12
13
  FORM/required_blocks,PASS,"empty form reports invalid: ['name', 'email', 'message']"
13
14
  NAVBAR/wide,PASS,"at this width the links are shown and the toggle is not (nav=True toggle=False, 4 links)"
14
15
  NAVBAR/narrow,PASS,below buttonBreakpoint it collapses behind the toggle (dropdown-mode=True)
@@ -18,7 +19,7 @@ MEDIA/icons_inline,PASS,"3 inline <svg> - `icon` takes RAW SVG in its `svg` prop
18
19
  WORDPRESS/shortcode_ran,PASS,"3 items from the shortcode - this is WooCommerce's own output, not a reimplementation"
19
20
  MULTISTEP,SKIPPED,not on this page
20
21
  COMPONENT/instances,PASS,"3 instances: ['cs-0-cs-card', 'cs-1-cs-card', 'cs-2-cs-card']"
21
- COMPONENT/one_definition,PASS,"all share the generated class ['_fp'] - one definition, not 3 copies"
22
+ COMPONENT/one_definition,PASS,"all share the generated class ['_fs'] - one definition, not 3 copies"
22
23
  COMPONENT/content_differs,PASS,"3 instances, 3 distinct bodies - the overrides are per-instance"
23
24
  LOOP/slider,SKIPPED,not on this page
24
25
  LOOP/tabs,SKIPPED,not on this page
@@ -41,6 +41,8 @@ IconElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Icon/I
41
41
  ImageElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Image/ImageElementMResourceData.php
42
42
  InputTextElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/InputText/InputTextElementMResourceData.php
43
43
  LabelElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Label/LabelElementMResourceData.php
44
+ ListBoxElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementMResourceData.php
45
+ ListBoxOptionElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/ListBox/Option/ListBoxOptionElementMResourceData.php
44
46
  ListElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/ListElement/ListElementMResourceData.php
45
47
  ListItemElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/ListElement/ListItem/ListItemElementMResourceData.php
46
48
  ListLoopItemsElementMResourceData,ElementMResourceLoopDataAbstract,no,Mosaic/NodeTypes/ListElement/ListLoopItems/ListLoopItemsElementMResourceData.php
@@ -63,7 +65,6 @@ NavbarToggleElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeType
63
65
  NavigationElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Navbar/Navigation/NavigationElementMResourceData.php
64
66
  NodeMResourceDataAbstract,MResourceDataAbstract,yes,Mosaic/NodeTypes/NodeAbstract/NodeMResourceDataAbstract.php
65
67
  OpenStreetMapElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/OpenStreetMap/OpenStreetMapElementMResourceData.php
66
- OptionElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Select/Option/OptionElementMResourceData.php
67
68
  PopoverElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Pro/Popover/PopoverElementMResourceData.php
68
69
  RadioInputElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementMResourceData.php
69
70
  RecaptchaElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Recaptcha/RecaptchaElementMResourceData.php
@@ -88,6 +89,10 @@ SGEntryContentTextElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/No
88
89
  SGEntryContentVerseElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/SG/SGEntryContent/SGEntryContentVerse/SGEntryContentVerseElementMResourceData.php
89
90
  SectionElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Section/SectionElementMResourceData.php
90
91
  SelectElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
92
+ SelectOptionElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementMResourceData.php
93
+ SelectOptionsElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/SelectOptionsElementMResourceData.php
94
+ SelectPlaceholderElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Select/Toggle/Placeholder/SelectPlaceholderElementMResourceData.php
95
+ SelectToggleElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Form/Form/MElements/Select/Toggle/SelectToggleElementMResourceData.php
91
96
  SliderArrowElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Slider/SliderArrow/SliderArrowElementMResourceData.php
92
97
  SliderElementMResourceData,ElementMResourceDataAbstract,no,Mosaic/NodeTypes/Slider/SliderElementMResourceData.php
93
98
  SliderLoopSlidesElementMResourceData,ElementMResourceLoopDataAbstract,no,Mosaic/NodeTypes/Slider/SliderLoopSlides/SliderLoopSlidesElementMResourceData.php
@@ -9,6 +9,8 @@ form-wrapper,form|success-screen,2,heal,Mosaic/NodeTypes/Form/FormWrapperElement
9
9
  loop,loop-items|loop-no-result,2,heal,Mosaic/NodeTypes/Loop/LoopElementMResource.php
10
10
  loop-pagination-numbers,loop-pagination-number,1,heal,Mosaic/NodeTypes/Loop/LoopPagination/Numbers/LoopPaginationNumbersElementMResource.php
11
11
  modal,modal-overlay,1,heal,Mosaic/NodeTypes/Pro/Dialog/Modal/ModalElementMResource.php
12
+ select,select-toggle|select-options,2,heal,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResource.php
13
+ select-toggle,select-placeholder,1,heal,Mosaic/NodeTypes/Form/Form/MElements/Select/Toggle/SelectToggleElementMResource.php
12
14
  slider,slider-slides,1,heal,Mosaic/NodeTypes/Slider/SliderElementMResource.php
13
15
  slider-navigation,slider-navigation-bullet,1,default,Mosaic/NodeTypes/Slider/SliderNavigation/SliderNavigationElementTypeFactory.php
14
16
  slider-navigation,slider-navigation-bullet,1,heal,Mosaic/NodeTypes/Slider/SliderNavigation/SliderNavigationElementMResource.php
@@ -1,10 +1,15 @@
1
1
  check,result,detail
2
2
  TABS,SKIPPED,not on this page
3
3
  ACCORDION,SKIPPED,not on this page
4
- FORM/fields,PASS,"13 controls, types: checkbox, email, file, radio, select-one, text, textarea"
5
- FORM/required,PASS,required is set on 8 of them
4
+ FORM/fields,PASS,"13 controls, types: checkbox, email, file, radio, text, textarea"
5
+ FORM/required,PASS,required is set on 7 of them
6
6
  FORM/honeypot,PASS,"Mosaic adds its own spam trap: ['mosaic_hp_url', 'mosaic_hp_ts']"
7
- FORM/option_labels,PASS,"5 options, all labelled"
7
+ FORM/option_labels,SKIPPED,no select on this form
8
+ FORM/select_required,PASS,submit with nothing picked: toggle aria-invalid='true'
9
+ FORM/select_labels,PASS,"4 options, labels are child text nodes: ['10 萬以下', '10–30 萬', '30–60 萬', '60 萬以上']"
10
+ FORM/select_opens,PASS,"toggle click: aria-expanded false -> true, list shown False -> True"
11
+ FORM/select_picks,PASS,"picked '10–30 萬': input budget='30', toggle shows '10–30 萬', closed=True"
12
+ FORM/select_keyboard,PASS,"ArrowDown, ArrowDown, Enter: '30' -> '60'"
8
13
  FORM/required_blocks,PASS,"empty form reports invalid: ['name', 'email', 'kind', 'kind']"
9
14
  NAVBAR,SKIPPED,not on this page
10
15
  MEDIA,SKIPPED,not on this page
@@ -1,5 +1,5 @@
1
1
  id,family,label,description,declared_in
2
- pointerMove,progress,Mouse,Animate as the mouse moves over the element.,Mosaic/Plugins/InteractionTypes/progress/pointermove/InteractionTypePointerMoveAbstract.php
2
+ pointerMove,progress,Mouse,"Animate as the mouse moves over the element, or as a finger drags across it with Touch on.",Mosaic/Plugins/InteractionTypes/progress/pointermove/InteractionTypePointerMoveAbstract.php
3
3
  scrollIntoView,progress,Page & scroll,Tracks the visibility of an element as it enters and exits the viewport.,Mosaic/Plugins/InteractionTypes/progress/scrollIntoView/InteractionTypeScrollIntoViewAbstract.php
4
4
  accordionItemChange,timed,Element events,Animate when the accordion item opens or closes.,Mosaic/Plugins/InteractionTypes/timed/accordionitemchange/InteractionTypeAccordionItemChangeAbstract.php
5
5
  click,timed,Mouse,Animate on the first/second click.,Mosaic/Plugins/InteractionTypes/timed/click/InteractionTypeClickAbstract.php
@@ -48,6 +48,15 @@ InputTextElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple
48
48
  InputTextElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,placeholderText,ValidateAllowUndefined|ValidatorString|Validators,,true,,,Mosaic/NodeTypes/Form/Form/MElements/InputText/InputTextElementMResourceData.php
49
49
  InputTextElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,autocomplete,ValidateAllowUndefined|ValidatorAutocompleteAttribute|Validators,,true,,,Mosaic/NodeTypes/Form/Form/MElements/InputText/InputTextElementMResourceData.php
50
50
  InputTextElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,logging,ValidateAllowUndefined|ValidatorAcceptedValues|Validators,store|mask|exclude,true,,,Mosaic/NodeTypes/Form/Form/MElements/InputText/InputTextElementMResourceData.php
51
+ ListBoxElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,nameAttribute,ValidateAllowUndefined|ValidatorInputNameAttribute|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementMResourceData.php
52
+ ListBoxElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,defaultValue,ValidateAllowUndefined|ValidatorInputDefaultValue|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementMResourceData.php
53
+ ListBoxElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,multiple,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementMResourceData.php
54
+ ListBoxElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,required,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementMResourceData.php
55
+ ListBoxElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,size,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementMResourceData.php
56
+ ListBoxElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,logging,ValidateAllowUndefined|ValidatorAcceptedValues|Validators,store|mask|exclude,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementMResourceData.php
57
+ ListBoxOptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,value,ValidateAllowUndefined|ValidatorString|Validators,,true,,value|selected|disabled|aria-disabled,Mosaic/NodeTypes/Form/Form/MElements/ListBox/Option/ListBoxOptionElementMResourceData.php
58
+ ListBoxOptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,text,ValidateAllowUndefined|ValidatorString|Validators,,true,,value|selected|disabled|aria-disabled,Mosaic/NodeTypes/Form/Form/MElements/ListBox/Option/ListBoxOptionElementMResourceData.php
59
+ ListBoxOptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,selected,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,value|selected|disabled|aria-disabled,Mosaic/NodeTypes/Form/Form/MElements/ListBox/Option/ListBoxOptionElementMResourceData.php
51
60
  FormStepElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,stepIndex,ValidatorInteger|ValidatorIntegerAsInteger,,,,data-step-id,Mosaic/NodeTypes/Form/Form/MElements/MultiSteps/Forms/FormStep/FormStepElementMResourceData.php
52
61
  FormStepElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,stepActive,ValidatorBoolean,,,,data-step-id,Mosaic/NodeTypes/Form/Form/MElements/MultiSteps/Forms/FormStep/FormStepElementMResourceData.php
53
62
  StepElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,stepIndex,ValidatorInteger|ValidatorIntegerAsInteger,,,,onclick,Mosaic/NodeTypes/Form/Form/MElements/MultiSteps/Steps/Step/StepElementMResourceData.php
@@ -55,16 +64,12 @@ StepElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,step
55
64
  RadioInputElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,value,ValidateAllowUndefined|ValidatorString|Validators,,true,,name|value|checked,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementMResourceData.php
56
65
  RadioInputElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,checked,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|value|checked,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementMResourceData.php
57
66
  RecaptchaElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,action,ValidateAllowUndefined|ValidatorString|Validators,,true,,data-mosaic-recaptcha|data-sitekey|data-action|data-response-field-name|id,Mosaic/NodeTypes/Form/Form/MElements/Recaptcha/RecaptchaElementMResourceData.php
58
- OptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,value,ValidateAllowUndefined|ValidatorString|Validators,,true,,value|selected|disabled,Mosaic/NodeTypes/Form/Form/MElements/Select/Option/OptionElementMResourceData.php
59
- OptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,text,ValidateAllowUndefined|ValidatorString|Validators,,true,,value|selected|disabled,Mosaic/NodeTypes/Form/Form/MElements/Select/Option/OptionElementMResourceData.php
60
- OptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,selected,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,value|selected|disabled,Mosaic/NodeTypes/Form/Form/MElements/Select/Option/OptionElementMResourceData.php
61
- OptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,disabled,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,value|selected|disabled,Mosaic/NodeTypes/Form/Form/MElements/Select/Option/OptionElementMResourceData.php
62
- SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,nameAttribute,ValidateAllowUndefined|ValidatorInputNameAttribute|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
63
- SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,defaultValue,ValidateAllowUndefined|ValidatorInputDefaultValue|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
64
- SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,multiple,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
65
- SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,required,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
66
- SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,size,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
67
- SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,logging,ValidateAllowUndefined|ValidatorAcceptedValues|Validators,store|mask|exclude,true,,name|multiple|required|size,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
67
+ SelectOptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,value,ValidateAllowUndefined|ValidatorString|Validators,,true,,role|data-value|aria-selected|selected|disabled|aria-disabled,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementMResourceData.php
68
+ SelectOptionElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,selected,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,role|data-value|aria-selected|selected|disabled|aria-disabled,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementMResourceData.php
69
+ SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,nameAttribute,ValidateAllowUndefined|ValidatorInputNameAttribute|Validators,,true,,name|required,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
70
+ SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,defaultValue,ValidateAllowUndefined|ValidatorInputDefaultValue|Validators,,true,,name|required,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
71
+ SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,required,ValidateAllowUndefined|ValidatorInteger|ValidatorIntegerAsString|Validators,,true,,name|required,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
72
+ SelectElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,logging,ValidateAllowUndefined|ValidatorAcceptedValues|Validators,store|mask|exclude,true,,name|required,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementMResourceData.php
68
73
  TextAreaElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,nameAttribute,ValidateAllowUndefined|ValidatorInputNameAttribute|Validators,,true,,name|placeholder|minlength|maxlength|required|autocomplete,Mosaic/NodeTypes/Form/Form/MElements/TextArea/TextAreaElementMResourceData.php
69
74
  TextAreaElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,defaultValue,ValidateAllowUndefined|ValidatorInputDefaultValue|Validators,,true,,name|placeholder|minlength|maxlength|required|autocomplete,Mosaic/NodeTypes/Form/Form/MElements/TextArea/TextAreaElementMResourceData.php
70
75
  TextAreaElementMResourceData,ElementMResourceDataAbstract,free,createDataSimple,placeholderText,ValidateAllowUndefined|ValidatorString|Validators,,true,,name|placeholder|minlength|maxlength|required|autocomplete,Mosaic/NodeTypes/Form/Form/MElements/TextArea/TextAreaElementMResourceData.php
@@ -28,6 +28,8 @@ form-error,Error message,FormErrorElementTypeFactory,ElementTypeFactoryAbstract,
28
28
  hidden-input,Hidden input,HiddenInputElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,HiddenInputElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/HiddenInput/HiddenInputElementTypeFactory.php
29
29
  text-input,Input,InputTextElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,InputTextElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/InputText/InputTextElementTypeFactory.php
30
30
  label,Label,LabelElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,LabelElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Label/LabelElementTypeFactory.php
31
+ listbox,List box,ListBoxElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,ListBoxElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementTypeFactory.php
32
+ listbox-option,Option,ListBoxOptionElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,ListBoxOptionElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/ListBox/Option/ListBoxOptionElementTypeFactory.php
31
33
  multi-steps-back-button,Back button,FormStepButtonBackElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,true,,,,Mosaic/NodeTypes/Form/Form/MElements/MultiSteps/Forms/FormStep/Button/ButtonStepBack/FormStepButtonBackElementTypeFactory.php
32
34
  multi-steps-next-button,Next button,FormStepButtonNextElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,true,,,,Mosaic/NodeTypes/Form/Form/MElements/MultiSteps/Forms/FormStep/Button/ButtonStepNext/FormStepButtonNextElementTypeFactory.php
33
35
  multi-steps-form-step,Form step,FormStepElementTypeFactory,ElementTypeFactoryAbstract,no,free,,,true,,FormStepElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/MultiSteps/Forms/FormStep/FormStepElementTypeFactory.php
@@ -37,8 +39,11 @@ form-multi-steps-step,Step,StepElementTypeFactory,ElementTypeFactoryAbstract,no,
37
39
  form-multi-steps-steps,Steps,StepsElementTypeFactory,ElementTypeFactoryAbstract,no,free,,,,,StepsElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/MultiSteps/Steps/StepsElementTypeFactory.php
38
40
  radio-input,Radio input,RadioInputElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,RadioInputElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementTypeFactory.php
39
41
  recaptcha,reCAPTCHA,RecaptchaElementTypeFactory,ElementTypeFactoryAbstract,no,free,,,,,RecaptchaElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Recaptcha/RecaptchaElementTypeFactory.php
40
- select-option,Option,OptionElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,OptionElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Select/Option/OptionElementTypeFactory.php
41
- select-input,Select,SelectElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,SelectElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
42
+ select-option,Option,SelectOptionElementTypeFactory,ElementTypeFactoryAbstract,no,free,,,true,,SelectOptionElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
43
+ select-options,Options,SelectOptionsElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,SelectOptionsElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/SelectOptionsElementTypeFactory.php
44
+ select,Select,SelectElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,SelectElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
45
+ select-placeholder,Placeholder,SelectPlaceholderElementTypeFactory,ElementTypeFactoryAbstract,no,free,,,true,,SelectPlaceholderElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Select/Toggle/Placeholder/SelectPlaceholderElementTypeFactory.php
46
+ select-toggle,Toggle,SelectToggleElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,true,,SelectToggleElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/Select/Toggle/SelectToggleElementTypeFactory.php
42
47
  submit-label,Submit label,SubmitLabelElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,SubmitLabelElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/SubmitButton/Label/SubmitLabelElementTypeFactory.php
43
48
  submit-loading,Submit loading,SubmitLoadingElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,SubmitLoadingElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/SubmitButton/Loading/SubmitLoadingElementTypeFactory.php
44
49
  submit-button,Submit,SubmitButtonElementTypeFactory,ElementTypeFactoryAbstract,no,free,,true,,,SubmitButtonElementMResourceData,ElementMResourceDataAbstract,Mosaic/NodeTypes/Form/Form/MElements/SubmitButton/SubmitButtonElementTypeFactory.php
@@ -66,8 +66,7 @@ form-multi-steps-step,RENDERED,div,m-multi-steps-step-tab,,28963,
66
66
  form-multi-steps-steps,COMMIT_500,,,,,PHP fatal / gateway error during commit
67
67
  radio-input,BROKE_PAGE,,,,51,A choice input must be placed inside a ChoiceField.
68
68
  recaptcha,COMMITTED,,,,27722,
69
- select-option,RENDERED,option,m-select-option,,27416,
70
- select-input,RENDERED,select,m-select,,27411,
69
+ select-option,RENDERED,div,m-select-option,,28177,
71
70
  submit-label,RENDERED,span,m-submit-label,yes,27807,
72
71
  submit-loading,COMMITTED,,,,27722,
73
72
  submit-button,RENDERED,button,m-submit-button,,27460,
@@ -128,3 +127,9 @@ youtube,RENDERED,mosaic-youtube,m-youtube,,27993,
128
127
  popover,RENDERED,div,m-popover M_Dialog M_IJ,,28043,
129
128
  fieldset-legend,RENDERED,div,m-fieldset-legend m-wysiwyg,,27401,
130
129
  fieldset-content,RENDERED,div,m-fieldset-content,,27357,
130
+ select,RENDERED,button,m-select-toggle,,28732,
131
+ select-toggle,RENDERED,button,m-select-toggle,,27999,
132
+ select-placeholder,RENDERED,span,m-select-placeholder-inner,,27834,
133
+ select-options,RENDERED,div,m-select-options,,27791,
134
+ listbox,RENDERED,select,m-listbox,,27777,
135
+ listbox-option,RENDERED,option,m-listbox-option,,27788,
@@ -44,6 +44,8 @@ label,none,,yes,yes,field,Mosaic/NodeTypes/Form/Form/MElements/Label/LabelElemen
44
44
  list,allow,list-item|list-loop-items,,,,Mosaic/NodeTypes/ListElement/ListElementTypeFactory.php
45
45
  list-item,any,,yes,,list|list-loop-items|wp-menu,Mosaic/NodeTypes/ListElement/ListItem/ListItemElementTypeFactory.php
46
46
  list-loop-items,allow,list-item,yes,,list,Mosaic/NodeTypes/ListElement/ListLoopItems/ListLoopItemsElementTypeFactory.php
47
+ listbox,complex,,yes,,field,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementTypeFactory.php
48
+ listbox-option,none,,yes,,listbox,Mosaic/NodeTypes/Form/Form/MElements/ListBox/Option/ListBoxOptionElementTypeFactory.php
47
49
  loop,allow,loop-pagination,,,,Mosaic/NodeTypes/Loop/LoopElementTypeFactory.php
48
50
  loop-item,any,,yes,,loop-items,Mosaic/NodeTypes/Loop/LoopItems/LoopItem/LoopItemElementTypeFactory.php
49
51
  loop-items,allow,loop-item,yes,yes,,Mosaic/NodeTypes/Loop/LoopItems/LoopItemsElementTypeFactory.php
@@ -71,8 +73,11 @@ popover,any,,,,,Mosaic/NodeTypes/Popover/PopoverElementTypeFactoryAbstract.php
71
73
  radio-input,none,,yes,,choice,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementTypeFactory.php
72
74
  recaptcha,none,,yes,,choice-field|field|form,Mosaic/NodeTypes/Form/Form/MElements/Recaptcha/RecaptchaElementTypeFactory.php
73
75
  section,any,,yes,,section,Mosaic/NodeTypes/Section/SectionElementTypeFactory.php
74
- select-input,complex,,yes,,field,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
75
- select-option,none,,yes,,select-input,Mosaic/NodeTypes/Form/Form/MElements/Select/Option/OptionElementTypeFactory.php
76
+ select,allow,select-options|select-toggle,yes,yes,field,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
77
+ select-option,any,,yes,yes,select-option|select-options,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
78
+ select-options,allow,select-option,,yes,,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/SelectOptionsElementTypeFactory.php
79
+ select-placeholder,any,,yes,yes,select-placeholder|select-toggle,Mosaic/NodeTypes/Form/Form/MElements/Select/Toggle/Placeholder/SelectPlaceholderElementTypeFactory.php
80
+ select-toggle,any,,,yes,,Mosaic/NodeTypes/Form/Form/MElements/Select/Toggle/SelectToggleElementTypeFactory.php
76
81
  slider,any,,,,,Mosaic/NodeTypes/Slider/SliderElementTypeFactory.php
77
82
  slider-arrow-left,any,,yes,yes,slider|slider-navigation,Mosaic/NodeTypes/Slider/SliderArrow/SliderArrowElementTypeFactoryAbstract.php
78
83
  slider-arrow-right,any,,yes,yes,slider|slider-navigation,Mosaic/NodeTypes/Slider/SliderArrow/SliderArrowElementTypeFactoryAbstract.php
@@ -14,10 +14,10 @@ gridAutoRows,,CSSCollectionVariablePropertyFactory,,,yes
14
14
  gridTemplateColumns,,CSSGridTemplateStylePropertyFactory,,,
15
15
  gridTemplateRows,,CSSGridTemplateStylePropertyFactory,,,
16
16
  gridTemplateAreas,,CSSGridAreaPropertyFactory,,,
17
- gridRowStart,gridChildPosition,CSSGrouppedPropertyFactory,,,
18
- gridColumnStart,gridChildPosition,CSSGrouppedPropertyFactory,,,
19
- gridRowEnd,gridChildPosition,CSSGrouppedPropertyFactory,,,
20
- gridColumnEnd,gridChildPosition,CSSGrouppedPropertyFactory,,,
17
+ gridChildPosition,,CSSGridChildPositionPropertyFactory,,,
18
+ gridChildPosition,,CSSGridChildPositionPropertyFactory,,,
19
+ gridChildPosition,,CSSGridChildPositionPropertyFactory,,,
20
+ gridChildPosition,,CSSGridChildPositionPropertyFactory,,,
21
21
  flexSizing,,CSSFlexSizingPropertyFactory,,,
22
22
  flexBasis,,CSSPropertyFactory,,,
23
23
  alignSelf,,CSSPropertyFactory,,auto|start|center|end|stretch|normal|flex-start|flex-end|self-start|self-end|baseline|first baseline|last baseline,
@@ -8,7 +8,9 @@ hover-tab,global,div,&:where(.m-tab:not(.m-tab--active)):HOVER,COMPILED,._m:wher
8
8
  hover-when-link,global,div,"&:where([tabindex]:not([tabindex=""-1""]),a[href]:not([disabled]),button:not([disabled])):HOVER",COMPILED,"._n:where([tabindex]:not([tabindex=""-1""]),a[href]:not([disabled]),button:not([disabled])):"
9
9
  ____loop_pagination_number--active,node-type,loop-pagination-number,&.m-loop-pagination-number--active,NO_HOST,host loop-pagination-number is COMMIT_500 - committing it breaks the page
10
10
  ____loop_pagination_number_ellipsis,node-type,loop-pagination-number,&.m-loop-pagination-number-ellipsis,NO_HOST,host loop-pagination-number is COMMIT_500 - committing it breaks the page
11
- ___arrow_hidden,node-type,,&:where(.m-slider-arrow--hidden),SKIPPED,no node type declares Mosaic/NodeTypes/Pro/Slider/SliderArrow/SliderArrowElementTypeFactoryAbstract.php
11
+ ___accordion-item--opened,node-type,accordion-item,"&.m-accordion-item--opened,.m-accordion-item:where(.m-accordion-item--opened) > &,.m-accordion-item:where(.m-accordion-item--opened) > .m-accordion-title &",NO_HOST,host accordion-item is BROKE_PAGE - committing it breaks the page
12
+ ___accordion-item--opening,node-type,accordion-item,"&.m-accordion-item--opening,.m-accordion-item:where(.m-accordion-item--opening) > &,.m-accordion-item:where(.m-accordion-item--opening) > .m-accordion-title &",NO_HOST,host accordion-item is BROKE_PAGE - committing it breaks the page
13
+ ___arrow_hidden,node-type,,&:where(.m-slider-arrow--hidden),SKIPPED,no node type declares Mosaic/NodeTypes/Slider/SliderArrow/SliderArrowElementTypeFactoryAbstract.php
12
14
  ___checkbox-input--checked,node-type,checkbox-input,&:checked,NO_HOST,host checkbox-input is BROKE_PAGE - committing it breaks the page
13
15
  ___checkbox-input--checkmark,node-type,checkbox-input,&:checked::before,NO_HOST,host checkbox-input is BROKE_PAGE - committing it breaks the page
14
16
  ___choice--checked,node-type,choice,&:has(:where(input):checked),COMPILED,._h:has(:where(input):checked)
@@ -16,19 +18,21 @@ ___choice--checked-within,node-type,choice,.m-choice:where(:has(input:checked))
16
18
  ___choice--focus-visible,node-type,choice,&:has(:where(input):focus-visible),COMPILED,._j:has(:where(input):focus-visible)
17
19
  ___choice-field--invalid,node-type,choice-field,&:has(:user-invalid),COMPILED,._h:has(:user-invalid)
18
20
  ___choice-field--invalid-within,node-type,choice-field,.m-choice-field:where(:has(:user-invalid)) &,COMPILED,.m-choice-field:where(:has(:user-invalid)) ._k
21
+ ___dropdown--opened,node-type,,"&.m-dropdown:where(.dropdown--opened),.m-dropdown:where(.dropdown--opened) > &,.m-dropdown:where(.dropdown--opened) > :where( .m-dropdown-toggle) &",SKIPPED,no node type declares Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
19
22
  ___dropdown--opening,node-type,,.m-dropdown:where(.dropdown--opening) &,SKIPPED,no node type declares Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
20
23
  ___dropdown-toggle--current,node-type,dropdown-toggle,&.m-dropdown-toggle--current,COMPILED,._h.m-dropdown-toggle--current
21
24
  ___dropdown-toggle--current-within,node-type,dropdown-toggle,".m-dropdown:where(:has(.m-menu-link--current,.m-dropdown-toggle--current)) > &",COMPILED,".m-dropdown:where(:has(.m-menu-link--current,.m-dropdown-toggle--current)) > ._i"
22
- ___field--focus-visible,node-type,field,"&:has(:where(input, textarea, select):focus-visible)",COMPILED,"._h:has(:where(input, textarea, select):focus-visible)"
23
- ___field--invalid,node-type,field,&:has(:user-invalid),COMPILED,._i:has(:user-invalid)
24
- ___field--invalid-focus-visible,node-type,field,&:has(:user-invalid:focus-visible),COMPILED,._j:has(:user-invalid:focus-visible)
25
- ___field--invalid-within,node-type,field,.m-field:where(:has(:user-invalid)) &,COMPILED,.m-field:where(:has(:user-invalid)) ._k
26
- ___field-set--invalid,node-type,fieldset,&:has(:user-invalid),COMPILED,._h:has(:user-invalid)
25
+ ___field--focus-visible,node-type,field,"&:has(:where(input, textarea, select, .m-select-toggle):focus-visible)",COMPILED,"._h:has(:where(input, textarea, select, .m-select-toggle):focus-visible)"
26
+ ___field--invalid,node-type,field,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",COMPILED,"._i:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))"
27
+ ___field--invalid-focus-visible,node-type,field,"&:has(:user-invalid:focus-visible, :where(.m-select-toggle:focus-visible ~ :user-invalid, .m-select-toggle[aria-invalid=""true""]:focus-visible))",COMPILED,"._j:has(:user-invalid:focus-visible, :where(.m-select-toggle:focus-visible ~ :user-invalid"
28
+ ___field--invalid-within,node-type,field,".m-field:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",COMPILED,".m-field:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) ._k"
29
+ ___field-set--invalid,node-type,fieldset,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",COMPILED,"._h:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))"
27
30
  ___fileupload-input--selector-button,node-type,fileupload-input,&::file-selector-button,COMPILED,._h::file-selector-button
28
31
  ___fileupload-input--selector-button-hover,node-type,fileupload-input,&::file-selector-button:hover,COMPILED,._i::file-selector-button:hover
29
32
  ___form--error,node-type,form-wrapper,"&[data-form-state=""error""]",COMPILED,"._h[data-form-state=""error""]"
30
- ___form--invalid-within,node-type,form-wrapper,.m-form-wrapper:where(:has(:user-invalid)) &,COMPILED,.m-form-wrapper:where(:has(:user-invalid)) ._k
33
+ ___form--invalid-within,node-type,form-wrapper,".m-form-wrapper:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",COMPILED,".m-form-wrapper:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) ._k"
31
34
  ___input--placeholder,node-type,text-input,&.m-input::placeholder,COMPILED,._h.m-input::placeholder
35
+ ___listbox-option,node-type,listbox,&.m-listbox :where(option),COMPILED,._h.m-listbox :where(option)
32
36
  ___loop_element_no_result,node-type,loop,&.m-loop--no-result,NO_HOST,host loop is COMMIT_500 - committing it breaks the page
33
37
  ___loop_pagination_button--disabled,node-type,loop-pagination-button-next,&.m-loop-pagination-button--disabled,NO_HOST,host loop-pagination-button-next is BROKE_PAGE - committing it breaks the page
34
38
  ___menu-link--current,node-type,menu-link,&.m-menu-link--current,COMPILED,._h.m-menu-link--current
@@ -36,10 +40,13 @@ ___navbar--dropdown-mode,node-type,navbar,"&:where(.m-navbar.dropdown-mode,.m-na
36
40
  ___navbar--opened,node-type,navbar,.dropdown-mode:where(.m-navbar.dropdown--opened) &,COMPILED,.dropdown-mode:where(.m-navbar.dropdown--opened) ._i
37
41
  ___navbar--opening,node-type,navbar,.dropdown-mode:where(.m-navbar.dropdown--opening) &,COMPILED,.dropdown-mode:where(.m-navbar.dropdown--opening) ._j
38
42
  ___nested_dropdown_mode,node-type,,"&:where(.dropdown-mode .m-navbar-navigation .m-dropdown &, .m-dropdown .m-dropdown &):not(x)",SKIPPED,no node type declares Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
43
+ ___popover--flipped,node-type,popover,"&:where(.m-popover[data-mosaic-popover-flipped],.m-popover[data-mosaic-popover-flipped] &)",COMPILED,"._h:where(.m-popover[data-mosaic-popover-flipped],.m-popover[data-mosaic-popover-flipped] "
39
44
  ___radio-input--checked,node-type,radio-input,&:checked,NO_HOST,host radio-input is BROKE_PAGE - committing it breaks the page
40
45
  ___radio-input--checkmark,node-type,radio-input,&:checked::before,NO_HOST,host radio-input is BROKE_PAGE - committing it breaks the page
41
- ___select-input-option,node-type,select-input,"&.m-select:where(:has(option:not(:disabled):checked)), &.m-select :where(option)",COMPILED,"._h.m-select:where(:has(option:not(:disabled):checked)), ._h.m-select :where(option)"
42
- ___select-input-option--disabled,node-type,select-input,"&.m-select:where(:has(option:disabled:checked)), &.m-select :where(option:disabled)",COMPILED,"._i.m-select:where(:has(option:disabled:checked)), ._i.m-select :where(option:disabled)"
46
+ ___select--opened,node-type,select,"&.m-select:where(.m-select--opened),.m-select:where(.m-select--opened) > &,.m-select:where(.m-select--opened) > .m-select-toggle &,.m-select:where(.m-select--opened) > .m-select-options &",ABSENT,probe element never reached the page
47
+ ___select-option--active,node-type,select-option,"&.m-select-option--active,.m-select-option--active &",COMPILED,"._h.m-select-option--active,.m-select-option--active ._h"
48
+ ___select-option--in-toggle,node-type,select-option,"&.m-select-current-option,.m-select-current-option &",COMPILED,"._i.m-select-current-option,.m-select-current-option ._i"
49
+ ___select-option--selected,node-type,select-option,"&[aria-selected=""true""],&.m-select-option--selected,[aria-selected=""true""] &,.m-select-option--selected &",COMPILED,"._j[aria-selected=""true""],._j.m-select-option--selected,[aria-selected=""true""] ._j,.m-sele"
43
50
  ___slide--active,node-type,slider-slide,.m-slide--active > &,NO_HOST,host slider-slide is BROKE_PAGE - committing it breaks the page
44
51
  ___slider_navigation_bullet--active,node-type,slider-navigation-bullet,&.m-slider-bullet--active,NO_HOST,host slider-navigation-bullet is COMMIT_500 - committing it breaks the page
45
52
  ___slider_navigation_bullet--hover,node-type,slider-navigation-bullet,&:not(.m-slider-bullet--active):HOVER,NO_HOST,host slider-navigation-bullet is COMMIT_500 - committing it breaks the page
@@ -23,16 +23,17 @@ ___dropdown--opened,"&.m-dropdown:where(.dropdown--opened),.m-dropdown:where(.dr
23
23
  ___dropdown--opening,.m-dropdown:where(.dropdown--opening) &,600,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownElementTypeFactoryAbstract.php
24
24
  ___dropdown-toggle--current,&.m-dropdown-toggle--current,500,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownToggle/DropdownToggleElementTypeFactory.php
25
25
  ___dropdown-toggle--current-within,".m-dropdown:where(:has(.m-menu-link--current,.m-dropdown-toggle--current)) > &",500,node-type,Mosaic/NodeTypes/Menu/Dropdown/DropdownToggle/DropdownToggleElementTypeFactory.php
26
- ___field--focus-visible,"&:has(:where(input, textarea, select):focus-visible)",760,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
27
- ___field--invalid,&:has(:user-invalid),700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
28
- ___field--invalid-focus-visible,&:has(:user-invalid:focus-visible),770,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
29
- ___field--invalid-within,.m-field:where(:has(:user-invalid)) &,700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
30
- ___field-set--invalid,&:has(:user-invalid),700,node-type,Mosaic/NodeTypes/Form/Form/MElements/FieldSet/FieldSetElementTypeFactory.php
26
+ ___field--focus-visible,"&:has(:where(input, textarea, select, .m-select-toggle):focus-visible)",760,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
27
+ ___field--invalid,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
28
+ ___field--invalid-focus-visible,"&:has(:user-invalid:focus-visible, :where(.m-select-toggle:focus-visible ~ :user-invalid, .m-select-toggle[aria-invalid=""true""]:focus-visible))",770,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
29
+ ___field--invalid-within,".m-field:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",700,node-type,Mosaic/NodeTypes/Form/Form/MElements/Field/FieldElementTypeFactory.php
30
+ ___field-set--invalid,"&:has(:user-invalid, :where(.m-select-toggle[aria-invalid=""true""]))",700,node-type,Mosaic/NodeTypes/Form/Form/MElements/FieldSet/FieldSetElementTypeFactory.php
31
31
  ___fileupload-input--selector-button,&::file-selector-button,0,node-type,Mosaic/NodeTypes/Form/Form/MElements/FileUpload/FileUploadElementTypeFactory.php
32
32
  ___fileupload-input--selector-button-hover,&::file-selector-button:hover,100,node-type,Mosaic/NodeTypes/Form/Form/MElements/FileUpload/FileUploadElementTypeFactory.php
33
33
  ___form--error,"&[data-form-state=""error""]",700,node-type,Mosaic/NodeTypes/Form/FormWrapperElementTypeFactory.php
34
- ___form--invalid-within,.m-form-wrapper:where(:has(:user-invalid)) &,700,node-type,Mosaic/NodeTypes/Form/FormWrapperElementTypeFactory.php
34
+ ___form--invalid-within,".m-form-wrapper:where(:has(:user-invalid, .m-select-toggle[aria-invalid=""true""])) &",700,node-type,Mosaic/NodeTypes/Form/FormWrapperElementTypeFactory.php
35
35
  ___input--placeholder,&.m-input::placeholder,0,node-type,Mosaic/NodeTypes/Form/Form/MElements/InputText/InputTextElementTypeFactory.php
36
+ ___listbox-option,&.m-listbox :where(option),500,node-type,Mosaic/NodeTypes/Form/Form/MElements/ListBox/ListBoxElementTypeFactory.php
36
37
  ___loop_element_no_result,&.m-loop--no-result,600,node-type,Mosaic/NodeTypes/Loop/LoopElementTypeFactory.php
37
38
  ___loop_pagination_button--disabled,&.m-loop-pagination-button--disabled,800,node-type,Mosaic/NodeTypes/Loop/LoopPagination/Button/ButtonNext/LoopPaginationButtonNextElementTypeFactory.php
38
39
  ___menu-link--current,&.m-menu-link--current,500,node-type,Mosaic/NodeTypes/Menu/MenuLink/MenuLinkElementTypeFactory.php
@@ -43,8 +44,10 @@ ___nested_dropdown_mode,"&:where(.dropdown-mode .m-navbar-navigation .m-dropdown
43
44
  ___popover--flipped,"&:where(.m-popover[data-mosaic-popover-flipped],.m-popover[data-mosaic-popover-flipped] &)",600,node-type,Mosaic/NodeTypes/Pro/Popover/PopoverElementTypeFactory.php
44
45
  ___radio-input--checked,&:checked,500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementTypeFactory.php
45
46
  ___radio-input--checkmark,&:checked::before,500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Radio/RadioInput/RadioInputElementTypeFactory.php
46
- ___select-input-option,"&.m-select:where(:has(option:not(:disabled):checked)), &.m-select :where(option)",500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
47
- ___select-input-option--disabled,"&.m-select:where(:has(option:disabled:checked)), &.m-select :where(option:disabled)",800,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
47
+ ___select--opened,"&.m-select:where(.m-select--opened),.m-select:where(.m-select--opened) > &,.m-select:where(.m-select--opened) > .m-select-toggle &,.m-select:where(.m-select--opened) > .m-select-options &",600,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/SelectElementTypeFactory.php
48
+ ___select-option--active,"&.m-select-option--active,.m-select-option--active &",500,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
49
+ ___select-option--in-toggle,"&.m-select-current-option,.m-select-current-option &",600,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
50
+ ___select-option--selected,"&[aria-selected=""true""],&.m-select-option--selected,[aria-selected=""true""] &,.m-select-option--selected &",400,node-type,Mosaic/NodeTypes/Form/Form/MElements/Select/Options/Option/SelectOptionElementTypeFactory.php
48
51
  ___slide--active,.m-slide--active > &,500,node-type,Mosaic/NodeTypes/Slider/SliderSlides/SliderSlide/SliderSlideElementTypeFactory.php
49
52
  ___slider_navigation_bullet--active,&.m-slider-bullet--active,500,node-type,Mosaic/NodeTypes/Slider/SliderNavigation/SliderNavigationBullet/SliderNavigationBulletElementTypeFactory.php
50
53
  ___slider_navigation_bullet--hover,&:not(.m-slider-bullet--active):HOVER,100,node-type,Mosaic/NodeTypes/Slider/SliderNavigation/SliderNavigationBullet/SliderNavigationBulletElementTypeFactory.php
@@ -5,13 +5,13 @@ DARK,Dark switches the page,PASS,"rgb(250, 250, 245) -> rgb(20, 22, 28)"
5
5
  DARK,Dark sets the cookie,PASS,rx-mode=dark
6
6
  DARK,a reload keeps Dark,PASS,"rgb(20, 22, 28)"
7
7
  DARK,Light switches back,PASS,"rgb(250, 250, 245), rx-mode=light"
8
- LOOP,moves on its own,PASS,154.357px -> 183.185px
9
- LOOP,hover suspends it by Interaction ID,PASS,184.09px = 184.09px
10
- LOOP,leaving resumes it,PASS,184.09px -> 196.866px
11
- LOOP,still moving past one 4s cycle,PASS,198.658px -> 1.153px
8
+ LOOP,moves on its own,PASS,153.434px -> 182.25px
9
+ LOOP,hover suspends it by Interaction ID,PASS,183.644px = 183.644px
10
+ LOOP,leaving resumes it,PASS,183.644px -> 196.695px
11
+ LOOP,still moving past one 4s cycle,PASS,198.316px -> 0.350098px
12
12
  OFFCANV,"odd click opens: display flex, slid in",PASS,"{'bg': 'rgb(240, 240, 240)', 'op': '1', 'd': 'flex', 'tr': '0%'}"
13
13
  OFFCANV,even click closes: display none at the end,PASS,"{'bg': 'rgb(240, 240, 240)', 'op': '1', 'd': 'none', 'tr': '100%'}"
14
- PROGRESS,bar fills as the article scrolls,PASS,-100% -> -55.0498% -> -0.968498%
14
+ PROGRESS,bar fills as the article scrolls,PASS,-100% -> -55.1729% -> -0.968059%
15
15
  REVEAL,first section reveals on scroll,PASS,"{'bg': 'rgb(9, 99, 199)', 'op': '1', 'd': 'block', 'tr': '0px'}"
16
16
  REVEAL,second stays hidden until reached,PASS,"{'bg': 'rgb(9, 99, 199)', 'op': '0', 'd': 'block', 'tr': '0px 40px'}"
17
17
  REVEAL,second reveals by class alone,PASS,"{'bg': 'rgb(9, 99, 199)', 'op': '1', 'd': 'block', 'tr': '0px'}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mosaic-headless",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "description": "AI-agent skill: build Mosaic Pro (Nextend) WordPress sites by writing the underlying data model directly - 23 custom tables, no visual editor, no DOM. Every node type, style property and node property swept against a live install and asserted on the delivered HTML and compiled CSS. Installs into Claude Code, Cursor, Codex CLI, Gemini CLI, Copilot, Continue, Windsurf and Claude.ai.",
5
5
  "keywords": [
6
6
  "wordpress",
@@ -397,14 +397,22 @@ was valid. Every field had been dropped on the way in, for three different reaso
397
397
  `*ElementMResourceFactory.php` and every extractor here walked
398
398
  `*ElementTypeFactory.php` only. Two types were missing from the catalog; the
399
399
  walk now covers both and the count went 126 → 128.
400
- - **`select-option` is a leaf and its label is the `text` PROPERTY.** Give it a
401
- `wysiwyg-text` child and the option renders with an empty label: a dropdown that
402
- opens onto five blank lines, which looks like a styling problem and is not.
400
+ - **Up to 1.0.11, `select-option` was a leaf and its label the `text` PROPERTY.**
401
+ A `wysiwyg-text` child rendered an empty label: a dropdown that opened onto five
402
+ blank lines. **1.0.12 reversed it.** `select-input` is gone; the dropdown is now
403
+ `select > select-toggle (select-placeholder, icon) + select-options > select-option`,
404
+ and a `select-option`'s label is a CHILD (`text` > `wysiwyg-text`, or anything
405
+ else) - a `text` property on it is not a declared property any more. The native
406
+ control lives on as `listbox` / `listbox-option`, and THAT option is still the
407
+ leaf with `text`. Writing a 1.0.11 tree to 1.0.12 is the new way to get blank
408
+ options; see `references/upgrading.md` for what the data upgrade rewrote.
403
409
 
404
410
  The through-line is the one this file keeps recording: Mosaic accepts a write it
405
411
  cannot use and says nothing. The defence is to read the delivered page back and
406
412
  count what arrived — `verify_components.py` now asserts the control count, the option
407
- labels and that an empty required form is actually refused.
413
+ labels and that an empty required form is actually refused, and on 1.0.12 drives the
414
+ custom select: it opens, a click and the keyboard both pick, the hidden input carries
415
+ the value, and a submit with nothing picked marks the toggle `aria-invalid`.
408
416
 
409
417
  ## `display` on an element whose visibility the plugin owns — twice now
410
418
 
@@ -19,14 +19,14 @@ component that checks placement, because nothing downstream will.
19
19
 
20
20
  ## The parent side: `data/placement-rules.csv`
21
21
 
22
- One row per node type, extracted from every `canBeParentFor` in the source (122 types):
22
+ One row per node type, extracted from every `canBeParentFor` in the source (134 types, 1.0.12):
23
23
 
24
24
  | rule | count | meaning |
25
25
  |---|---|---|
26
- | `none` | 59 | leaf. Refuses every child — the default on `NodeTypeFactoryAbstract`. |
27
- | `any` | 34 | takes anything. `div`, `body`, `section`, `button`, `menu`, `slider-slide`, `tabs-tab-pane`, … |
28
- | `allow` | 26 | takes only the types in `allowed_children`. |
29
- | `complex` | 3 | the body is not a plain `instanceof` chain — `fieldset`, `select-input`, `styleguide-entry-content-text-quote`. Read the file named in `declared_in`. |
26
+ | `none` | 57 | leaf. Refuses every child — the default on `NodeTypeFactoryAbstract`. |
27
+ | `any` | 46 | takes anything. `div`, `body`, `section`, `button`, `menu`, `slider-slide`, `tabs-tab-pane`, … |
28
+ | `allow` | 29 | takes only the types in `allowed_children`. |
29
+ | `complex` | 2 | the body is not a plain `instanceof` chain — `listbox`, `styleguide-entry-content-text-quote`. Read the file named in `declared_in`. |
30
30
 
31
31
  The `allow` rows are the component families, and they are strict. A few worth knowing
32
32
  by heart because they are the ones people get wrong:
@@ -1,4 +1,4 @@
1
- # Upgrading the plugin: what 1.0.7 → 1.0.8 → 1.0.10 → 1.0.11 did to the data, measured
1
+ # Upgrading the plugin: what 1.0.7 → 1.0.8 → 1.0.10 → 1.0.11 → 1.0.12 did to the data, measured
2
2
 
3
3
  A Mosaic plugin update is two events, not one. The files change when WordPress
4
4
  installs the package; the DATA changes only when Mosaic's own upgrade flow has
@@ -340,3 +340,69 @@ runs had left `master-root`, `styleguide-root`, `component-root` and
340
340
  `parentNodeID` (the master is back to its 7 baseline nodes), and sweep `document`
341
341
  on its own, or not at all. Also, the parent is the FIRST div by `ordering` (what
342
342
  `--setup` picks); a config rebuilt by hand with another div sends the probes there.
343
+
344
+ ## 1.0.11 → 1.0.12
345
+
346
+ **Getting the package.** `wp plugin update mosaic` again: "Updated 1 of 1", the
347
+ right permissions, and `MOSAIC_GLOBAL.dataVersion` / `MOSAIC_SITE.dataVersion` read
348
+ `1.0.12` on the first look afterwards. **The data upgrade now runs on its own, in
349
+ the background** (`MosaicUpgradeLayer/BackgroundUpgrade`); nothing had to be driven.
350
+ `wp plugin list` printed `1.0.11` once, straight after the update, before the
351
+ header read back as 1.0.12 - check `Version:` in `mosaic.php`, not the first list.
352
+ Backups: `wp db export ~/private_html/pre-1012.sql` and a copy of the old folder.
353
+ No duplicate roots afterwards (the health SQL in SKILL.md: 0 groups, 155 roots).
354
+
355
+ **What the migration rewrote: the Select split** (`Upgrade-1.0.12.php`, NEXT-4757,
356
+ written for 1.0.8 and carried forward). The native `select-input` / `select-option`
357
+ pair is gone. Every stored `select-input` became one of two things:
358
+
359
+ - `multiple`, or `size` > 1 → **`listbox`** > `listbox-option` - the native
360
+ `<select class="m-listbox">`, whose option is still a leaf with a `text` property;
361
+ - anything else → the new **`select`**, written out as the factory defaults:
362
+
363
+ ```
364
+ select nameAttribute, required, defaultValue; the root keeps width + font
365
+ select-toggle <button role=combobox> - the visible box, the field chrome moved here
366
+ select-placeholder > text (Inherited text) > wysiwyg-text "Please choose an option"
367
+ icon the chevron SVG
368
+ select-options <div role=listbox>
369
+ select-option value, selected; label is a CHILD: text > wysiwyg-text
370
+ ```
371
+
372
+ Delivered as `<mosaic-select class="m-select">`, plus a hidden
373
+ `<input class="m-select-input" name=…>` that carries the value into the
374
+ submission. The field's invalid / focus-visible state selectors grew a
375
+ `.m-select-toggle[aria-invalid="true"]` arm, because the hidden input is never
376
+ `:user-invalid` - a submit with nothing picked marks the TOGGLE instead. Old
377
+ `___select-input-option*` states became `___listbox-option` on the List box path and
378
+ `___select-option--active` (from a hover) on the Select path; the rest were dropped.
379
+ An empty-valued first option survived the migration as an ordinary option; the
380
+ skill's form builder (`sites/_forms.py`) now turns it into the placeholder instead.
381
+
382
+ **Re-extracted and diffed against 1.0.11:** 134 node types (+7 Select / List box,
383
+ -2), 201 node properties, 131 data classes, 134 placement rules, 27 default
384
+ structures (`select` and `select-toggle` heal their children in), 60 style states
385
+ (`___select--opened`, three option states, `___listbox-option`),
386
+ `gridRow/ColumnStart/End` moved under a `CSSGridChildPositionPropertyFactory`, and
387
+ the `pointerMove` trigger's description gained touch. Pluggables are the same 285.
388
+ `check_tables.py`: every source table matches a fresh extraction.
389
+
390
+ **Re-verified on the live site:** `form-surface` 23/23 (the select opened, picked by
391
+ click and by keyboard, required refused), `component-wall` 27, `content-loop` 15/15,
392
+ `popovers` 37/37, `tokens` 15/15, `dialog-form` 49/49, both sliders 15/15,
393
+ `tutorial-recipes` 16/16, the interaction sweep unchanged (the editor-shape
394
+ candidates still BIND), style states 39 COMPILED of 40 probed, and the seven new
395
+ node types all RENDERED. The 406s some posts return are older than the upgrade:
396
+ those posts have no Mosaic template (`TemplateNotFoundException`).
397
+
398
+ **Two traps hit while doing it, both ours:**
399
+
400
+ - Rebuilding ONE page with `build_site.py` re-fills every component, which re-keys
401
+ their inner nodes (`references/design-system.md`); the other pages that place a
402
+ component keep overrides keyed to the old IDs and fall back to the defaults -
403
+ three identical "專案" cards. Build every page that places a component in the
404
+ same run as the page you changed.
405
+ - `verify_recipes.py --post` binds the recipes template to THAT post. The example
406
+ command said `--post 21`, which on this site is an unrelated probe page; its
407
+ content was replaced and `/probe-recipes/` kept serving an older build. Look the
408
+ ID up first.
@@ -122,22 +122,22 @@ if (!fs.existsSync(path.join(ROOT, pkg.bin["mosaic-headless"])))
122
122
  const rows = (p) => tableFiles(p)
123
123
  .reduce((n, f) => n + read(f).trim().split("\n").length - 1, 0); // minus each header
124
124
  const counts = {
125
- "data/node-verification.csv": 129,
125
+ "data/node-verification.csv": 134,
126
126
  "data/style-verification.csv": 101,
127
127
  "data/node-property-verification.csv": 191,
128
128
  "data/rwd-verification.csv": 733,
129
129
  "data/browser-verification": 4132,
130
- "data/style-state-verification.csv": 52,
130
+ "data/style-state-verification.csv": 59,
131
131
  "data/interaction-verification.csv": 11,
132
132
  "data/tutorial-recipes-verification.csv": 16,
133
- "data/data-class-hierarchy.csv": 126,
133
+ "data/data-class-hierarchy.csv": 131,
134
134
  "data/custom-fields-verification.csv": 62,
135
135
  "data/dialog-verification.csv": 19,
136
136
  "data/slider-verification.csv": 30,
137
137
  "data/token-verification.csv": 15,
138
138
  "data/mobile-audit.csv": 68,
139
- "data/component-wall-verification.csv": 26,
140
- "data/form-surface-verification.csv": 18,
139
+ "data/component-wall-verification.csv": 27,
140
+ "data/form-surface-verification.csv": 23,
141
141
  "data/content-loop-verification.csv": 15,
142
142
  "data/navigation-verification.csv": 39,
143
143
  "data/page-modal-verification.csv": 19,
package/sites/_forms.py CHANGED
@@ -15,8 +15,14 @@ Shapes, read out of the source rather than guessed:
15
15
  choice-label its text
16
16
  radio-input or checkbox-input, carrying `value`
17
17
 
18
- select-input nameAttribute, required, multiple, size
19
- select-option value + its text
18
+ select nameAttribute, required, defaultValue (1.0.12)
19
+ select-toggle the visible box
20
+ select-placeholder > text, shown until something is picked
21
+ icon the chevron
22
+ select-options the list
23
+ select-option value, selected; its label is a CHILD (text)
24
+ listbox the native <select>: multiple, size >= 2
25
+ listbox-option value + its `text` property (a leaf)
20
26
 
21
27
  form-multi-steps
22
28
  form-multi-steps-steps > form-multi-steps-step the tab bar
@@ -82,9 +88,18 @@ def labelled(attr, text, node_type, **data):
82
88
  ])
83
89
 
84
90
 
91
+ # the toggle's default chevron, verbatim from SelectToggleElementTypeFactory
92
+ CHEVRON = ('<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" '
93
+ 'fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" '
94
+ 'stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>')
95
+
96
+
85
97
  def select(attr, label, name, options, **extra):
86
98
  d = {"attrID": attr, "nameAttribute": name}
87
99
  d.update(extra)
100
+ prompt = "請選擇"
101
+ if options and options[0][0] == "":
102
+ prompt, options = options[0][1], options[1:]
88
103
  return _field(attr, [
89
104
  {"type": "label", "data": {"attrID": attr + "-lab", "forInput": attr},
90
105
  "style": {"&": {"_": {"fontFamily": MONO, "fontSize": "10px",
@@ -92,15 +107,42 @@ def select(attr, label, name, options, **extra):
92
107
  "color": {"token": "--mk-faint"}},
93
108
  "_t": {"fontSize": "12px"}}},
94
109
  "children": [{"type": "wysiwyg-text", "data": {"text": label}}]},
95
- {"type": "select-input", "data": d, "style": FIELD_STYLE,
110
+ # 1.0.12 replaced the native <select> (`select-input`, whose options were
111
+ # leaves carrying a `text` property) with a buildable one, rendered as
112
+ # <mosaic-select>: a combobox button plus a listbox, and a hidden input
113
+ # that carries the value into the submission. The shape is the factory
114
+ # defaults (SelectElementTypeFactory), the same one the 1.0.12 data
115
+ # upgrade wrote over the old select on this page:
116
+ # select > select-toggle > (select-placeholder > text, icon chevron)
117
+ # > select-options > select-option > text (any children)
118
+ # The visible box is the TOGGLE, so the field chrome goes there; the root
119
+ # keeps the width and the font the options inherit. An empty-valued first
120
+ # option is what a native select used as its prompt - here that is the
121
+ # placeholder's job. The native control survives as `listbox`
122
+ # (multiple / size > 1), whose `listbox-option` is still a leaf with `text`.
123
+ {"type": "select", "data": d,
124
+ "style": {"&": {"_": {"width": "100%", "fontFamily": CJK, "fontSize": "14px"}}},
96
125
  "children": [
97
- # `select-option` is a LEAF. Its label is the `text` property, not
98
- # a child - commit a wysiwyg-text under it and the option renders
99
- # with an empty label and the dropdown looks blank. Its other
100
- # properties are `value`, `selected` and `disabled`.
101
- {"type": "select-option",
102
- "data": {"attrID": "%s-o%d" % (attr, i), "value": v, "text": t}}
103
- for i, (v, t) in enumerate(options)]},
126
+ {"type": "select-toggle", "data": {}, # the root's attrID lands here as the id
127
+ "style": {"&": {"_": dict(FIELD_STYLE["&"]["_"], **{
128
+ "display": "flex", "justifyContent": "space-between",
129
+ "alignItems": "center", "columnGap": "10px"})},
130
+ "focus-visible": FIELD_STYLE["focus-visible"]},
131
+ "children": [
132
+ {"type": "select-placeholder", "data": {},
133
+ "children": [{"type": "wysiwyg-text", "data": {"text": prompt}}]},
134
+ {"type": "icon", "data": {"svg": CHEVRON}}]},
135
+ {"type": "select-options", "data": {"attrID": attr + "-list"},
136
+ "style": {"&": {"_": {"backgroundColor": {"token": "--mk-paper"},
137
+ "customDeclarations": "border:1px solid rgba(22,24,28,.3);"}}},
138
+ "children": [
139
+ {"type": "select-option",
140
+ "data": {"attrID": "%s-o%d" % (attr, i), "value": v},
141
+ "style": {"&": {"_": {"paddingTop": "10px", "paddingBottom": "10px",
142
+ "paddingLeft": "14px", "paddingRight": "14px"}}},
143
+ "children": [{"type": "wysiwyg-text", "data": {"text": t}}]}
144
+ for i, (v, t) in enumerate(options, 1)]},
145
+ ]},
104
146
  ])
105
147
 
106
148
 
@@ -475,7 +517,7 @@ TREE = {"type": "div", "data": {"attrID": "fm-page"},
475
517
  "children": [
476
518
  HEAD,
477
519
  band("fm-main", "ENQUIRY / 專案洽詢",
478
- "fieldset › label + text-input / select-input › select-option / "
520
+ "fieldset › label + text-input / select › toggle + options › option / "
479
521
  "choice-field › choice › radio-input + checkbox-input / "
480
522
  "fileupload-input / form-error / submit-loading",
481
523
  full_form(), bg="--mk-panel"),
@@ -71,7 +71,7 @@ def fetch(url):
71
71
 
72
72
  def place(client, cfg, surface, slug, post, node, label):
73
73
  """Build a page carrying exactly one tree, and hand back its HTML."""
74
- master = build_shell(client, cfg, {"pages": [], "shell": {}}, surface)
74
+ master, _header, _footer = build_shell(client, cfg, {"pages": [], "shell": {}}, surface)
75
75
  template = bind_page(client, cfg, master, slug, post)
76
76
  inst = "templateDocumentInstance/%s/%s" % (master, template)
77
77
  doc = unwrap(client.get(inst), "templateDocumentInstance")
@@ -176,7 +176,7 @@ def main():
176
176
  if refused else "it ACCEPTED a write it documents as not allowed")
177
177
 
178
178
  # ── 6. two instances on a real page, and the page must show both ─────────
179
- master = build_shell(client, cfg, {"pages": [], "shell": {}}, surface)
179
+ master, _header, _footer = build_shell(client, cfg, {"pages": [], "shell": {}}, surface)
180
180
  template = bind_page(client, cfg, master, a.slug, a.post)
181
181
  tinst = "templateDocumentInstance/%s/%s" % (master, template)
182
182
  tdoc = unwrap(client.get(tinst), "templateDocumentInstance")
@@ -155,7 +155,7 @@ def main():
155
155
  site = {"pages": [], "shell": {}}
156
156
  cls_of, rules_of, page_ok = {}, {}, {}
157
157
  for host in order:
158
- master = build_shell(client, cfg, site, surface)
158
+ master, _header, _footer = build_shell(client, cfg, site, surface)
159
159
  template = bind_page(client, cfg, master, a.slug, a.post)
160
160
  build_page_document(client, cfg, master, template,
161
161
  tree_for(batches[host]), surface)
@@ -157,8 +157,8 @@ def main():
157
157
  "required is set on %d of them" % sum(1 for f in real if f["req"]))
158
158
  check("FORM/honeypot", bool(honeypot),
159
159
  "Mosaic adds its own spam trap: %s" % honeypot)
160
- # a <select> whose options have no text renders as a blank dropdown:
161
- # `select-option` is a LEAF and its label is the `text` PROPERTY
160
+ # a native <select> (1.0.12: `listbox`) whose options have no text renders blank:
161
+ # `listbox-option` is a LEAF and its label is the `text` PROPERTY
162
162
  opts = p.evaluate("""(id) => [...document.querySelectorAll('#' + id + ' option')]
163
163
  .map(o => o.textContent.trim())""", a.form)
164
164
  if opts:
@@ -167,6 +167,61 @@ def main():
167
167
  else "blank labels - `text` is a property, not a child")
168
168
  else:
169
169
  skip("FORM/option_labels", "no select on this form")
170
+ # 1.0.12's Select is not a <select>: <mosaic-select> holds a combobox
171
+ # button, a role=listbox of buildable options and a hidden input that
172
+ # carries the value. Drive it the way a visitor does.
173
+ sel = p.evaluate("""(id) => { const s = document.querySelector('#' + id + ' mosaic-select');
174
+ return s ? s.querySelector('.m-select-toggle').id : null; }""", a.form)
175
+ if not sel:
176
+ skip("FORM/select", "no custom select on this form")
177
+ else:
178
+ st = lambda: p.evaluate("""(t) => { const b = document.getElementById(t),
179
+ s = b.closest('mosaic-select'), l = s.querySelector('[role=listbox]'),
180
+ i = s.querySelector('input.m-select-input'), r = l.getBoundingClientRect();
181
+ return {exp: b.getAttribute('aria-expanded'), shown: r.height > 2
182
+ && getComputedStyle(l).visibility !== 'hidden'
183
+ && getComputedStyle(l).display !== 'none',
184
+ value: i.value, name: i.name, label: b.innerText.trim(),
185
+ opts: [...l.querySelectorAll('[role=option]')].map(o =>
186
+ [o.dataset.value ?? '', o.textContent.trim()])}; }""", sel)
187
+ closed = st()
188
+ # the hidden input is not what fails validation: a submit with
189
+ # nothing picked marks the TOGGLE aria-invalid, which is what the
190
+ # field's invalid state selectors key on in 1.0.12
191
+ p.click("#%s [type=submit]" % a.form)
192
+ p.wait_for_timeout(600)
193
+ inv = p.evaluate("(t) => document.getElementById(t).getAttribute('aria-invalid')", sel)
194
+ check("FORM/select_required", inv == "true",
195
+ "submit with nothing picked: toggle aria-invalid=%r" % inv)
196
+ check("FORM/select_labels", closed["opts"] and all(t for _v, t in closed["opts"]),
197
+ "%d options, labels are child text nodes: %s"
198
+ % (len(closed["opts"]), [t for _v, t in closed["opts"]][:4]))
199
+ p.click("#" + sel)
200
+ p.wait_for_timeout(400)
201
+ opened = st()
202
+ check("FORM/select_opens", opened["exp"] == "true" and opened["shown"]
203
+ and not closed["shown"],
204
+ "toggle click: aria-expanded %s -> %s, list shown %s -> %s"
205
+ % (closed["exp"], opened["exp"], closed["shown"], opened["shown"]))
206
+ want_v, want_t = closed["opts"][1]
207
+ p.click("#%s ~ [role=listbox] [role=option] >> nth=1" % sel)
208
+ p.wait_for_timeout(400)
209
+ picked = st()
210
+ check("FORM/select_picks", picked["value"] == want_v
211
+ and want_t in picked["label"] and picked["exp"] == "false",
212
+ "picked %r: input %s=%r, toggle shows %r, closed=%s"
213
+ % (want_t, picked["name"], picked["value"], picked["label"],
214
+ picked["exp"] == "false"))
215
+ # keyboard: open, one row down, Enter picks the next option
216
+ p.focus("#" + sel)
217
+ p.keyboard.press("ArrowDown")
218
+ p.keyboard.press("ArrowDown")
219
+ p.keyboard.press("Enter")
220
+ p.wait_for_timeout(400)
221
+ keyed = st()
222
+ check("FORM/select_keyboard", keyed["value"] not in ("", picked["value"])
223
+ and keyed["exp"] == "false",
224
+ "ArrowDown, ArrowDown, Enter: %r -> %r" % (picked["value"], keyed["value"]))
170
225
  # the browser's own validation has to stop an empty required form
171
226
  p.evaluate("(id) => document.getElementById(id).reset()", a.form)
172
227
  invalid = p.evaluate("""(id) => [...document.getElementById(id)