Skip to content

Commit 76ed382

Browse files
committed
prefix
1 parent bb3c911 commit 76ed382

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

dove.html

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@
869869
default: if (prop.startsWith('place-')) {
870870
newProp.push(prop.replace('place', 'align'), prop.replace('place', 'justify'))
871871
}
872+
else if (reg.anim.test(prop))
873+
newProp.push(`-moz-${prop}`, `-webkit-${prop}`, `-o-${prop}`)
872874
else if (reg.size.test(prop)) if (value === 'stretch' || value === 'var(--stretch)') newValue = '-webkit-fill-available'
873875
}
874876
if (value !== (value = value.replace(reg.globals, t))) added.push([prop, value])
@@ -892,6 +894,7 @@
892894
globals: /var\s*\((--_(?:[a-z\d-_])+)\)/gi,
893895
global: /^--_(?:[a-z\d-_])+$/i,
894896
size: /^(?:(?:max|min)-)?(?:width|height)$/g,
897+
anim: /^animation(?:-(?!composition|timeline|range(?:-(?:end-start))?)[\w-]*\w)?$/g,
895898
grid: /((?:inline-)?grid)/,
896899
marker: /::marker/g,
897900
imgset: /(?<!-webkit-)image-set(?=\()/g,
@@ -914,7 +917,7 @@
914917
}
915918
if (reg.unclickable.test(s)) {
916919
rule.selectors = s.replace(reg.unclickable, ':is([disabled],[readonly],[aria-disabled="true"])')
917-
.split('▊')
920+
.split('▊')
918921
}
919922
if (reg.clickable.test(s)) {
920923
rule.selectors = s.replace(reg.clickable, ':is([role="button"],[role="link"],[role="tab"],[role="checkbox"],[role="radio"],select,summary,[tabindex],label:where(:has(input,select,textarea,button),[for]),area,a,button,input:where([type="button"],[type="checkbox"],[type="date"],[type="datetime-local"],[type="file"],[type="image"],[type="month"],[type="radio"],[type="submit"],[type="time"],[type="week"]))')
@@ -994,6 +997,12 @@
994997
break
995998
case 'keyframes':
996999
rule.keyframes.forEach(o => fixDeclarations(o.declarations, globalVars))
1000+
// let p = rule.parent.rules || rule.parent.stylesheet.rules
1001+
// for(let prefix of ['webkit','o','moz']) {
1002+
// let clone = structuredClone(rule)
1003+
// clone.type = `@-${prefix}-keyframes`
1004+
// insert(p, p.indexOf(rule), clone)
1005+
// }
9971006
break
9981007
case 'media':
9991008
case 'supports':

noscript.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
display:none !important
33
}
44
* {
5+
-webkit-tap-highlight-color: var(--tap-highlight-color);
56
font-family: inherit;
67
overflow-wrap: var(--word-wrap);
78
scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-color);

0 commit comments

Comments
 (0)