@citolab/qti-components 6.9.1-beta.72 → 6.9.1-beta.74

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/dist/index.min.js CHANGED
@@ -23,7 +23,7 @@ Make sure to test your application with a production build as repeat registratio
23
23
  <xsl:apply-templates/>
24
24
  </xsl:element>
25
25
  </xsl:template>
26
- </xsl:stylesheet>`;function mi(s,t,e){s.querySelectorAll(t).forEach(r=>{let i=`${t}-${e}`,o=gi(r,i);r.replaceWith(o)})}function fi(s,t){s.querySelectorAll("*").forEach(e=>{let r=e.classList;r&&r.forEach(i=>{if(i.startsWith(`${t}:`)){let o=i.slice(`${t}:`.length),n=`${e.nodeName}-${o}`,a=gi(e,n);e.replaceWith(a)}})})}function gi(s,t){let e=document.createElement(t);for(let r of s.attributes)e.setAttribute(r.name,r.value);for(;s.firstChild;)e.appendChild(s.firstChild);return e}function bi(s){let t=[];return s.querySelectorAll("qti-assessment-item-ref").forEach(e=>{let r=e.getAttribute("identifier"),i=e.getAttribute("href"),o=e.getAttribute("category");t.push({identifier:r,href:i,category:o})}),t}var lr=null;function qe(s,t=!1){return t&&lr!==null&&lr.abort(),new Promise((e,r)=>{let i=new XMLHttpRequest;lr=i,i.open("GET",s,!0),i.responseType="document",i.onload=()=>{i.status>=200&&i.status<300?e(i.responseXML):r(i.statusText)},i.onerror=()=>{r(i.statusText)},i.send()})}function Ae(s){return new DOMParser().parseFromString(s,"text/xml")}function Te(s){let t=new XSLTProcessor,e=new DOMParser().parseFromString(hs,"text/xml");return t.importStylesheet(e),t.transformToFragment(s,document)}function vi(s,t){t.endsWith("/")||(t+="/"),s.querySelectorAll("[src],[href],[primary-path]").forEach(e=>{var o;let r="";e.getAttribute("src")&&(r="src"),e.getAttribute("href")&&(r="href"),e.getAttribute("primary-path")&&(r="primary-path");let i=(o=e.getAttribute(r))==null?void 0:o.trim();if(!i.startsWith("data:")&&!i.startsWith("http")){let n=t+encodeURI(i);e.setAttribute(r,n)}})}function yi(s){s.querySelectorAll('qti-custom-operator[class="js.org"] > qti-base-value').forEach(e=>{let r=document.createComment(e.textContent);e.replaceChild(r,e.firstChild)})}function xi(s){s.querySelectorAll("qti-stylesheet").forEach(t=>t.remove())}var St=()=>{let s,t={async load(e,r=!1){return new Promise((i,o)=>{qe(e,r).then(n=>(s=n,t.path(e.substring(0,e.lastIndexOf("/"))),i(t)))})},parse(e){return s=Ae(e),t},path:e=>(vi(s,e),t),fn(e){return e(s),t},pciHooks(e){let r=["hook","module"],i=e.substring(0,e.lastIndexOf("/"));for(let o of r)s.querySelectorAll("["+o+"]").forEach(a=>{let c=a.getAttribute(o);!c.startsWith("data:")&&!c.startsWith("http")&&(a.setAttribute("base-url",e),a.setAttribute("module",i+"/"+encodeURI(c+(c.endsWith(".js")?"":".js"))))});return t},extendElementName:(e,r)=>(mi(s,e,r),t),extendElementsWithClass:(e="extend")=>(fi(s,e),t),customInteraction(e,r){let i=s.querySelector("qti-custom-interaction"),o=i.querySelector("object");return i.setAttribute("data-base-ref",e),i.setAttribute("data-base-item",e+r),i.setAttribute("data",o.getAttribute("data")),i.setAttribute("width",o.getAttribute("width")),i.setAttribute("height",o.getAttribute("height")),i.removeChild(o),t},convertCDATAtoComment(){return yi(s),t},stripStyleSheets(){return xi(s),t},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Ei=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){s=Ae(e)},assessmentTest(){let e=s.querySelector('resource[type="imsqti_test_xmlv3p0"]');return{href:e.getAttribute("href"),identifier:e.getAttribute("identifier")}}};return t};var cr=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){return s=Ae(e),t},fn(e){return e(s),t},items(){return bi(s)},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Se=class extends v{constructor(){super(...arguments);this.identifier="";this.href=""}async connectedCallback(){super.connectedCallback();let e=new Event("qti-assessment-stimulus-ref-connected",{cancelable:!0,bubbles:!0});if(this.dispatchEvent(e)){let o=this.closest("qti-assessment-item").querySelector(`[data-stimulus-idref=${this.identifier}]`);o?await this.updateStimulusRef(o):console.warn(`Stimulus with data-stimulus-idref ${this.identifier} not found`)}}async updateStimulusRef(e){let r=this.href.substring(0,this.href.lastIndexOf("/")),i=await St().load(this.href).then(o=>o.path(r).htmlDoc());if(i){let o=i.querySelectorAll("qti-stimulus-body, qti-stylesheet");e.innerHTML="",e.append(...o)}}};l([d({type:String})],Se.prototype,"identifier",2),l([d({type:String})],Se.prototype,"href",2),Se=l([h("qti-assessment-stimulus-ref")],Se);var Ci={toAttribute:s=>s?"true":"false",fromAttribute:s=>s==="true"};function O(s,t){class e extends s{constructor(...o){super(...o);this.identifier="";this.tabIndex=0;this.disabled=!1;this.readonly=!1;this.internals=this.attachInternals()}handleDisabledChange(o,n){this.tabIndex=n?-1:0,n&&this.blur()}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent(`register-${t}`,{bubbles:!0,composed:!0}))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent(`unregister-${t}`,{bubbles:!0,composed:!0}))}_onKeyUp(o){o.altKey||o.code==="Space"&&(o.preventDefault(),this._activate())}_onClick(){this.disabled||this.readonly||(this.focus(),this._activate())}_activate(){this.disabled||this.readonly||this.dispatchEvent(new CustomEvent(`activate-${t}`,{bubbles:!0,composed:!0,detail:{identifier:this.identifier}}))}render(){return u`<slot></slot>`}}return l([d({type:String})],e.prototype,"identifier",2),l([d({type:Number,reflect:!0,attribute:"tabindex"})],e.prototype,"tabIndex",2),l([d({type:Boolean,reflect:!0,attribute:"aria-disabled",converter:Ci})],e.prototype,"disabled",2),l([d({type:Boolean,reflect:!0,attribute:"aria-readonly",converter:Ci})],e.prototype,"readonly",2),l([M("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e}var _i=g`
26
+ </xsl:stylesheet>`;function mi(s,t,e){s.querySelectorAll(t).forEach(r=>{let i=`${t}-${e}`,o=gi(r,i);r.replaceWith(o)})}function fi(s,t){s.querySelectorAll("*").forEach(e=>{let r=e.classList;r&&r.forEach(i=>{if(i.startsWith(`${t}:`)){let o=i.slice(`${t}:`.length),n=`${e.nodeName}-${o}`,a=gi(e,n);e.replaceWith(a)}})})}function gi(s,t){let e=document.createElement(t);for(let r of s.attributes)e.setAttribute(r.name,r.value);for(;s.firstChild;)e.appendChild(s.firstChild);return e}function bi(s){let t=[];return s.querySelectorAll("qti-assessment-item-ref").forEach(e=>{let r=e.getAttribute("identifier"),i=e.getAttribute("href"),o=e.getAttribute("category");t.push({identifier:r,href:i,category:o})}),t}var lr=null;function qe(s,t=!1){return t&&lr!==null&&lr.abort(),new Promise((e,r)=>{let i=new XMLHttpRequest;lr=i,i.open("GET",s,!0),i.responseType="document",i.onload=()=>{i.status>=200&&i.status<300?e(i.responseXML):r(i.statusText)},i.onerror=()=>{r(i.statusText)},i.send()})}function Ae(s){return new DOMParser().parseFromString(s,"text/xml")}function Te(s){let t=new XSLTProcessor,e=new DOMParser().parseFromString(hs,"text/xml");return t.importStylesheet(e),t.transformToFragment(s,document)}function vi(s,t){t.endsWith("/")||(t+="/"),s.querySelectorAll("[src],[href],[primary-path]").forEach(e=>{var o;let r="";e.getAttribute("src")&&(r="src"),e.getAttribute("href")&&(r="href"),e.getAttribute("primary-path")&&(r="primary-path");let i=(o=e.getAttribute(r))==null?void 0:o.trim();if(!i.startsWith("data:")&&!i.startsWith("http")){let n=t+encodeURI(i);e.setAttribute(r,n)}})}function yi(s){s.querySelectorAll('qti-custom-operator[class="js.org"] > qti-base-value').forEach(e=>{let r=document.createComment(e.textContent);e.replaceChild(r,e.firstChild)})}function xi(s){s.querySelectorAll("qti-stylesheet").forEach(t=>t.remove())}var St=()=>{let s,t={async load(e,r=!1){return new Promise((i,o)=>{qe(e,r).then(n=>(s=n,t.path(e.substring(0,e.lastIndexOf("/"))),i(t)))})},parse(e){return s=Ae(e),t},path:e=>(vi(s,e),t),fn(e){return e(s),t},pciHooks(e){let r=["hook","module"],i=e.substring(0,e.lastIndexOf("/"));for(let o of r)s.querySelectorAll("["+o+"]").forEach(a=>{let c=a.getAttribute(o);!c.startsWith("data:")&&!c.startsWith("http")&&(a.setAttribute("base-url",e),a.setAttribute("module",i+"/"+encodeURI(c+(c.endsWith(".js")?"":".js"))))});return t},extendElementName:(e,r)=>(mi(s,e,r),t),extendElementsWithClass:(e="extend")=>(fi(s,e),t),customInteraction(e,r){let i=s.querySelector("qti-custom-interaction"),o=i.querySelector("object");return i.setAttribute("data-base-ref",e),i.setAttribute("data-base-item",e+r),i.setAttribute("data",o.getAttribute("data")),i.setAttribute("width",o.getAttribute("width")),i.setAttribute("height",o.getAttribute("height")),i.removeChild(o),t},convertCDATAtoComment(){return yi(s),t},stripStyleSheets(){return xi(s),t},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Ei=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){s=Ae(e)},assessmentTest(){let e=s.querySelector('resource[type="imsqti_test_xmlv3p0"]');return{href:e.getAttribute("href"),identifier:e.getAttribute("identifier")}}};return t};var cr=()=>{let s,t={async load(e){return new Promise((r,i)=>{qe(e).then(o=>(s=o,r(t)))})},parse(e){return s=Ae(e),t},fn(e){return e(s),t},items(){return bi(s)},html(){return new XMLSerializer().serializeToString(Te(s))},xml(){return new XMLSerializer().serializeToString(s)},htmlDoc(){return Te(s)},xmlDoc(){return s}};return t};var Se=class extends v{constructor(){super(...arguments);this.identifier="";this.href=""}async connectedCallback(){super.connectedCallback();let e=new Event("qti-assessment-stimulus-ref-connected",{cancelable:!0,bubbles:!0});if(this.dispatchEvent(e)){let o=this.closest("qti-assessment-item").querySelector(`[data-stimulus-idref=${this.identifier}]`);o?await this.updateStimulusRef(o):console.warn(`Stimulus with data-stimulus-idref ${this.identifier} not found`)}}async updateStimulusRef(e){let r=this.href.substring(0,this.href.lastIndexOf("/")),i=await St().load(this.href).then(o=>o.htmlDoc());if(i){let o=i.querySelectorAll("qti-stimulus-body, qti-stylesheet");e.innerHTML="",e.append(...o)}}};l([d({type:String})],Se.prototype,"identifier",2),l([d({type:String})],Se.prototype,"href",2),Se=l([h("qti-assessment-stimulus-ref")],Se);var Ci={toAttribute:s=>s?"true":"false",fromAttribute:s=>s==="true"};function O(s,t){class e extends s{constructor(...o){super(...o);this.identifier="";this.tabIndex=0;this.disabled=!1;this.readonly=!1;this.internals=this.attachInternals()}handleDisabledChange(o,n){this.tabIndex=n?-1:0,n&&this.blur()}connectedCallback(){super.connectedCallback(),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent(`register-${t}`,{bubbles:!0,composed:!0}))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("click",this._onClick),this.dispatchEvent(new CustomEvent(`unregister-${t}`,{bubbles:!0,composed:!0}))}_onKeyUp(o){o.altKey||o.code==="Space"&&(o.preventDefault(),this._activate())}_onClick(){this.disabled||this.readonly||(this.focus(),this._activate())}_activate(){this.disabled||this.readonly||this.dispatchEvent(new CustomEvent(`activate-${t}`,{bubbles:!0,composed:!0,detail:{identifier:this.identifier}}))}render(){return u`<slot></slot>`}}return l([d({type:String})],e.prototype,"identifier",2),l([d({type:Number,reflect:!0,attribute:"tabindex"})],e.prototype,"tabIndex",2),l([d({type:Boolean,reflect:!0,attribute:"aria-disabled",converter:Ci})],e.prototype,"disabled",2),l([d({type:Boolean,reflect:!0,attribute:"aria-readonly",converter:Ci})],e.prototype,"readonly",2),l([M("disabled",{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e}var _i=g`
27
27
  :host {
28
28
  display: block;
29
29
  }
package/dist/item.css CHANGED
@@ -304,6 +304,14 @@
304
304
  background-color: var(--qti-bg-active);
305
305
  }
306
306
 
307
+ .act-bg {
308
+ background-color: var(--qti-bg-active);
309
+ }
310
+
311
+ .act-bor {
312
+ border-color: var(--qti-border-active);
313
+ }
314
+
307
315
  /* Apply .rdo for readonly state */
308
316
 
309
317
  .rdo {
@@ -1075,11 +1083,11 @@
1075
1083
  }
1076
1084
 
1077
1085
  .qti-height-1-3 {
1078
- height: 33.333333%;
1086
+ height: 33.3333%;
1079
1087
  }
1080
1088
 
1081
1089
  .qti-height-2-3 {
1082
- height: 66.666667%;
1090
+ height: 66.6667%;
1083
1091
  }
1084
1092
 
1085
1093
  .qti-height-1-4 {
@@ -1111,11 +1119,11 @@
1111
1119
  }
1112
1120
 
1113
1121
  .qti-height-1-6 {
1114
- height: 16.666667%;
1122
+ height: 16.6667%;
1115
1123
  }
1116
1124
 
1117
1125
  .qti-height-2-6 {
1118
- height: 33.333333%;
1126
+ height: 33.3333%;
1119
1127
  }
1120
1128
 
1121
1129
  .qti-height-3-6 {
@@ -1123,11 +1131,11 @@
1123
1131
  }
1124
1132
 
1125
1133
  .qti-height-4-6 {
1126
- height: 66.666667%;
1134
+ height: 66.6667%;
1127
1135
  }
1128
1136
 
1129
1137
  .qti-height-5-6 {
1130
- height: 83.333333%;
1138
+ height: 83.3333%;
1131
1139
  }
1132
1140
 
1133
1141
  .qti-height-auto {
@@ -1291,11 +1299,11 @@
1291
1299
  }
1292
1300
 
1293
1301
  .qti-width-1-3 {
1294
- width: 33.333333%;
1302
+ width: 33.3333%;
1295
1303
  }
1296
1304
 
1297
1305
  .qti-width-2-3 {
1298
- width: 66.666667%;
1306
+ width: 66.6667%;
1299
1307
  }
1300
1308
 
1301
1309
  .qti-width-1-4 {
@@ -1327,11 +1335,11 @@
1327
1335
  }
1328
1336
 
1329
1337
  .qti-width-1-6 {
1330
- width: 16.666667%;
1338
+ width: 16.6667%;
1331
1339
  }
1332
1340
 
1333
1341
  .qti-width-2-6 {
1334
- width: 33.333333%;
1342
+ width: 33.3333%;
1335
1343
  }
1336
1344
 
1337
1345
  .qti-width-3-6 {
@@ -1339,19 +1347,19 @@
1339
1347
  }
1340
1348
 
1341
1349
  .qti-width-4-6 {
1342
- width: 66.666667%;
1350
+ width: 66.6667%;
1343
1351
  }
1344
1352
 
1345
1353
  .qti-width-5-6 {
1346
- width: 83.333333%;
1354
+ width: 83.3333%;
1347
1355
  }
1348
1356
 
1349
1357
  .qti-width-1-12 {
1350
- width: 8.333333%;
1358
+ width: 8.3333%;
1351
1359
  }
1352
1360
 
1353
1361
  .qti-width-2-12 {
1354
- width: 16.666667%;
1362
+ width: 16.6667%;
1355
1363
  }
1356
1364
 
1357
1365
  .qti-width-3-12 {
@@ -1359,11 +1367,11 @@
1359
1367
  }
1360
1368
 
1361
1369
  .qti-width-4-12 {
1362
- width: 33.333333%;
1370
+ width: 33.3333%;
1363
1371
  }
1364
1372
 
1365
1373
  .qti-width-5-12 {
1366
- width: 41.666667%;
1374
+ width: 41.6667%;
1367
1375
  }
1368
1376
 
1369
1377
  .qti-width-6-12 {
@@ -1371,11 +1379,11 @@
1371
1379
  }
1372
1380
 
1373
1381
  .qti-width-7-12 {
1374
- width: 58.333333%;
1382
+ width: 58.3333%;
1375
1383
  }
1376
1384
 
1377
1385
  .qti-width-8-12 {
1378
- width: 66.666667%;
1386
+ width: 66.6667%;
1379
1387
  }
1380
1388
 
1381
1389
  .qti-width-9-12 {
@@ -1383,11 +1391,11 @@
1383
1391
  }
1384
1392
 
1385
1393
  .qti-width-10-12 {
1386
- width: 83.333333%;
1394
+ width: 83.3333%;
1387
1395
  }
1388
1396
 
1389
1397
  .qti-width-11-12 {
1390
- width: 91.666667%;
1398
+ width: 91.6667%;
1391
1399
  }
1392
1400
 
1393
1401
  .qti-width-full,
@@ -1921,22 +1929,6 @@ qti-response-declaration {
1921
1929
  box-sizing: inherit;
1922
1930
  }
1923
1931
 
1924
- [popover] {
1925
- position: fixed;
1926
- inset: 0;
1927
- margin: auto;
1928
- border: solid;
1929
- padding: 0.25em;
1930
- overflow: auto;
1931
- color: CanvasText;
1932
- background-color: Canvas;
1933
- }
1934
-
1935
- [popovertarget] {
1936
- all: unset;
1937
- cursor: pointer;
1938
- }
1939
-
1940
1932
  /* components */
1941
1933
 
1942
1934
  @layer qti-components {
@@ -2094,14 +2086,6 @@ qti-response-declaration {
2094
2086
  }
2095
2087
 
2096
2088
  qti-text-entry-interaction {
2097
- &:hover {
2098
- background-color: var(--qti-hover-bg);
2099
- }
2100
-
2101
- &:focus-within {
2102
- box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2103
- }
2104
-
2105
2089
  &::part(input) {
2106
2090
  border-radius: 0;
2107
2091
  cursor: text;
@@ -2110,6 +2094,17 @@ qti-response-declaration {
2110
2094
  border: var(--qti-border-thickness) var(--qti-border-style) var(--qti-border-color);
2111
2095
  outline: none;
2112
2096
  }
2097
+
2098
+ &:hover {
2099
+ background-color: var(--qti-hover-bg);
2100
+ }
2101
+
2102
+ &:focus-within {
2103
+ &::part(input) {
2104
+ box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2105
+ border-color: var(--qti-border-active);
2106
+ }
2107
+ }
2113
2108
  }
2114
2109
 
2115
2110
  qti-extended-text-interaction {
@@ -2129,6 +2124,7 @@ qti-response-declaration {
2129
2124
  &:focus-within {
2130
2125
  &::part(textarea) {
2131
2126
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
2127
+ border-color: var(--qti-border-active);
2132
2128
  }
2133
2129
  }
2134
2130
  }
@@ -2252,7 +2248,6 @@ qti-response-declaration {
2252
2248
  &:state(--checked),
2253
2249
  &[aria-checked='true'] {
2254
2250
  border-color: var(--qti-border-active);
2255
- background-color: var(--qti-bg-active);
2256
2251
  }
2257
2252
 
2258
2253
  &:state(--readonly),
@@ -2287,9 +2282,9 @@ qti-response-declaration {
2287
2282
 
2288
2283
  &[shape='rect'] {
2289
2284
 
2290
- &:hover {
2291
- background-color: var(--qti-hover-bg);
2292
- }
2285
+ /* &:hover {
2286
+ @apply hov;
2287
+ } */
2293
2288
 
2294
2289
  &:focus {
2295
2290
  box-shadow: 0 0 0 var(--qti-focus-border-width) var(--qti-focus-color);
@@ -2298,7 +2293,6 @@ qti-response-declaration {
2298
2293
  &:state(--checked),
2299
2294
  &[aria-checked='true'] {
2300
2295
  border-color: var(--qti-border-active);
2301
- background-color: var(--qti-bg-active);
2302
2296
  }
2303
2297
 
2304
2298
  &[aria-readonly='true'] {
@@ -2331,25 +2325,21 @@ qti-response-declaration {
2331
2325
 
2332
2326
  &[shape='poly'] {
2333
2327
  &:hover::after {
2334
-
2335
2328
  content: '';
2336
2329
  width: 100%;
2337
2330
  height: 100%;
2338
2331
  background: repeating-linear-gradient(
2339
2332
  45deg,
2340
- var(--qti-primary),
2341
- var(--qti-primary) 5px,
2333
+ var(--qti-border-active),
2334
+ var(--qti-border-active) 5px,
2342
2335
  transparent 5px,
2343
2336
  transparent 10px
2344
2337
  );
2345
2338
  display: block;
2346
- border-color: var(--qti-border-active);
2347
- background-color: var(--qti-bg-active);
2348
2339
  }
2349
2340
 
2350
2341
  &:state(--checked)::after,
2351
2342
  &[aria-checked='true']::after {
2352
-
2353
2343
  content: '';
2354
2344
  width: 100%;
2355
2345
  height: 100%;
@@ -2357,18 +2347,10 @@ qti-response-declaration {
2357
2347
  45deg,
2358
2348
  transparent,
2359
2349
  transparent 5px,
2360
- var(--qti-primary) 5px,
2361
- var(--qti-primary) 10px
2350
+ var(--qti-border-active) 5px,
2351
+ var(--qti-border-active) 10px
2362
2352
  );
2363
2353
  display: block;
2364
- border-color: var(--qti-border-active);
2365
- background-color: var(--qti-bg-active);
2366
- }
2367
-
2368
- &:state(--checked),
2369
- &[aria-checked='true'] {
2370
- border-color: var(--qti-border-active);
2371
- background-color: var(--qti-bg-active);
2372
2354
  }
2373
2355
 
2374
2356
  &[aria-readonly='true'] {
@@ -3111,7 +3093,7 @@ qti-response-declaration {
3111
3093
  qti-graphic-gap-match-interaction {
3112
3094
  position: relative;
3113
3095
 
3114
- & img {
3096
+ &img {
3115
3097
  margin: 0;
3116
3098
  padding: 0;
3117
3099
  }
@@ -3146,9 +3128,8 @@ qti-response-declaration {
3146
3128
  margin-right: 0.125rem;
3147
3129
  margin-bottom: 0.25rem; /* mb-1 */
3148
3130
  height: 0.5rem; /* h-2 */
3149
- background-position: 0 center;
3150
- background: linear-gradient(to right, var(--qti-tick-color) var(--qti-tick-width), transparent 1px) repeat-x;
3151
- background-size: calc(calc(100% - var(--qti-tick-width)) / ((var(--max) - var(--min)) / var(--step))) 100%;
3131
+ background: linear-gradient(to right, var(--qti-tick-color) var(--qti-tick-width), transparent 1px) repeat-x 0
3132
+ center / calc(calc(100% - var(--qti-tick-width)) / ((var(--max) - var(--min)) / var(--step))) 100%;
3152
3133
  }
3153
3134
 
3154
3135
  &::part(rail) {
@@ -3229,4 +3210,3 @@ qti-response-declaration {
3229
3210
  width: 100%;
3230
3211
  }
3231
3212
  }
3232
-