Skip to content

Commit 8d3132c

Browse files
authored
Merge pull request #174 from Mouvedia/stylelint-7764
add missing properties
2 parents 91dad60 + 7a5c39e commit 8d3132c

File tree

7 files changed

+114
-4
lines changed

7 files changed

+114
-4
lines changed

.eslintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
sourceType: 'module',
23
extends: 'eslint:recommended',
34
env: {
45
node: true,

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ List of standard and browser specific CSS properties.
2222
| Chrome | 14 - 126 |
2323
| Firefox | 6 - 127 |
2424
| Edge | 13 - 18 |
25-
| Safari | 6, 6.2, 7 - 9, 9.1, 10.0, 11.0, 11.1, 12.0, 12.1, 13.0, 13.1, 14, 14.1, 15.1, 15.4, 16.0, 16.5, 17.0, 17.1, 17.3 |
25+
| Safari | 1.1, 2, 6, 6.2, 7 - 9, 9.1, 10.0, 11.0, 11.1, 12.0, 12.1, 13.0, 13.1, 14, 14.1, 15.1, 15.4, 16.0, 16.5, 17.0, 17.1, 17.3 |
2626
| Internet Explorer | 8 - 11 |
2727
| Opera | 12.10, 12.14, 12.15, 12.16, 36 - 40, 45, 56, 58 |
2828

data/all.json

+44
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
"app-region",
7373
"-webkit-app-region",
7474
"appearance",
75+
"-khtml-appearance",
7576
"-moz-appearance",
7677
"-webkit-appearance",
7778
"ascent-override",
@@ -119,6 +120,7 @@
119120
"baseline-shift",
120121
"baseline-source",
121122
"behavior",
123+
"-khtml-binding",
122124
"-moz-binding",
123125
"block-ellipsis",
124126
"-ms-block-progression",
@@ -175,6 +177,7 @@
175177
"-moz-border-end-width",
176178
"-webkit-border-end-width",
177179
"-webkit-border-fit",
180+
"-khtml-border-horizontal-spacing",
178181
"-webkit-border-horizontal-spacing",
179182
"border-image",
180183
"-moz-border-image",
@@ -240,23 +243,33 @@
240243
"-webkit-border-top-right-radius",
241244
"border-top-style",
242245
"border-top-width",
246+
"-khtml-border-vertical-spacing",
243247
"-webkit-border-vertical-spacing",
244248
"border-width",
245249
"bottom",
250+
"-khtml-box-align",
246251
"-moz-box-align",
247252
"-webkit-box-align",
248253
"box-decoration-break",
249254
"-webkit-box-decoration-break",
255+
"-khtml-box-direction",
250256
"-moz-box-direction",
251257
"-webkit-box-direction",
258+
"-khtml-box-flex-group",
259+
"-khtml-box-flex-group-transition",
252260
"-webkit-box-flex-group",
261+
"-khtml-box-flex",
253262
"-moz-box-flex",
254263
"-webkit-box-flex",
264+
"-khtml-box-lines",
255265
"-webkit-box-lines",
266+
"-khtml-box-ordinal-group",
256267
"-moz-box-ordinal-group",
257268
"-webkit-box-ordinal-group",
269+
"-khtml-box-orient",
258270
"-moz-box-orient",
259271
"-webkit-box-orient",
272+
"-khtml-box-pack",
260273
"-moz-box-pack",
261274
"-webkit-box-pack",
262275
"-webkit-box-reflect",
@@ -361,6 +374,7 @@
361374
"cy",
362375
"d",
363376
"-apple-dashboard-region",
377+
"-khtml-dashboard-region",
364378
"-webkit-dashboard-region",
365379
"descent-override",
366380
"direction",
@@ -440,6 +454,8 @@
440454
"flow-into",
441455
"-ms-flow-into",
442456
"-webkit-flow-into",
457+
"-khtml-flow-mode",
458+
"-konq-flow-mode",
443459
"font",
444460
"font-display",
445461
"font-family",
@@ -455,6 +471,7 @@
455471
"font-palette",
456472
"font-size",
457473
"font-size-adjust",
474+
"-khtml-font-size-delta",
458475
"-webkit-font-size-delta",
459476
"-webkit-font-smoothing",
460477
"font-stretch",
@@ -524,6 +541,7 @@
524541
"height",
525542
"-ms-high-contrast-adjust",
526543
"-webkit-highlight",
544+
"-khtml-horizontal-border-spacing",
527545
"hyphenate-character",
528546
"-webkit-hyphenate-character",
529547
"-webkit-hyphenate-limit-after",
@@ -568,6 +586,7 @@
568586
"inset-inline-start",
569587
"-ms-interpolation-mode",
570588
"isolation",
589+
"-konq-js-clip",
571590
"justify-content",
572591
"-webkit-justify-content",
573592
"justify-items",
@@ -587,8 +606,11 @@
587606
"-webkit-line-align",
588607
"-webkit-line-box-contain",
589608
"line-break",
609+
"-khtml-line-break",
590610
"-webkit-line-break",
591611
"line-clamp",
612+
"-apple-line-clamp",
613+
"-khtml-line-clamp",
592614
"-webkit-line-clamp",
593615
"line-gap-override",
594616
"line-grid",
@@ -618,8 +640,10 @@
618640
"margin-block-end",
619641
"margin-block-start",
620642
"margin-bottom",
643+
"-khtml-margin-bottom-collapse",
621644
"-webkit-margin-bottom-collapse",
622645
"margin-break",
646+
"-khtml-margin-collapse",
623647
"-webkit-margin-collapse",
624648
"-moz-margin-end",
625649
"-webkit-margin-end",
@@ -628,9 +652,11 @@
628652
"margin-inline-start",
629653
"margin-left",
630654
"margin-right",
655+
"-khtml-margin-start",
631656
"-moz-margin-start",
632657
"-webkit-margin-start",
633658
"margin-top",
659+
"-khtml-margin-top-collapse",
634660
"-webkit-margin-top-collapse",
635661
"margin-trim",
636662
"marker",
@@ -645,12 +671,18 @@
645671
"marker-start",
646672
"marks",
647673
"-wap-marquee-dir",
674+
"-khtml-marquee-direction",
648675
"-webkit-marquee-direction",
676+
"-khtml-marquee-increment",
649677
"-webkit-marquee-increment",
678+
"-khtml-marquee",
650679
"-wap-marquee-loop",
680+
"-khtml-marquee-repetition",
651681
"-webkit-marquee-repetition",
682+
"-khtml-marquee-speed",
652683
"-wap-marquee-speed",
653684
"-webkit-marquee-speed",
685+
"-khtml-marquee-style",
654686
"-wap-marquee-style",
655687
"-webkit-marquee-style",
656688
"-webkit-marquee",
@@ -694,6 +726,7 @@
694726
"-webkit-mask-source-type",
695727
"mask-type",
696728
"-webkit-mask",
729+
"-khtml-match-nearest-mail-blockquote-color",
697730
"-webkit-match-nearest-mail-blockquote-color",
698731
"math-depth",
699732
"math-shift",
@@ -725,6 +758,7 @@
725758
"nav-right",
726759
"nav-up",
727760
"navigation",
761+
"-khtml-nbsp-mode",
728762
"-webkit-nbsp-mode",
729763
"negative",
730764
"object-fit",
@@ -744,6 +778,7 @@
744778
"offset-rotate",
745779
"offset-rotation",
746780
"opacity",
781+
"-khtml-opacity",
747782
"-moz-opacity",
748783
"-webkit-opacity",
749784
"order",
@@ -809,6 +844,7 @@
809844
"padding-inline-start",
810845
"padding-left",
811846
"padding-right",
847+
"-khtml-padding-start",
812848
"-moz-padding-start",
813849
"-webkit-padding-start",
814850
"padding-top",
@@ -870,6 +906,7 @@
870906
"right",
871907
"rotate",
872908
"row-gap",
909+
"-khtml-rtl-ordering",
873910
"-webkit-rtl-ordering",
874911
"ruby-align",
875912
"ruby-merge",
@@ -1051,6 +1088,7 @@
10511088
"text-decoration-trim",
10521089
"text-decoration-underline",
10531090
"-webkit-text-decoration",
1091+
"-khtml-text-decorations-in-effect",
10541092
"-webkit-text-decorations-in-effect",
10551093
"text-emphasis",
10561094
"text-emphasis-color",
@@ -1085,6 +1123,8 @@
10851123
"-webkit-text-security",
10861124
"text-shadow",
10871125
"text-size-adjust",
1126+
"-apple-text-size-adjust",
1127+
"-khtml-text-size-adjust",
10881128
"-moz-text-size-adjust",
10891129
"-ms-text-size-adjust",
10901130
"-webkit-text-size-adjust",
@@ -1167,18 +1207,22 @@
11671207
"uc-skin",
11681208
"unicode-bidi",
11691209
"unicode-range",
1210+
"-khtml-user-drag",
11701211
"-webkit-user-drag",
11711212
"-moz-user-focus",
11721213
"-moz-user-input",
1214+
"-khtml-user-modify",
11731215
"-moz-user-modify",
11741216
"-webkit-user-modify",
11751217
"user-select",
1218+
"-khtml-user-select",
11761219
"-moz-user-select",
11771220
"-ms-user-select",
11781221
"-webkit-user-select",
11791222
"user-zoom",
11801223
"vector-effect",
11811224
"vertical-align",
1225+
"-khtml-vertical-border-spacing",
11821226
"view-timeline",
11831227
"view-timeline-axis",
11841228
"view-timeline-inset",

scripts/generate.mjs

+4-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import fs from 'fs/promises';
55
import path from 'path';
66
import { globby } from 'globby';
77
import uniq from 'lodash.uniq';
8-
import sortBy from 'lodash.sortBy';
8+
import sortBy from 'lodash.sortby';
99

1010
const W3C_SOURCE_FILEPATH = path.join(process.cwd(), 'source/w3c.json');
11+
const UNKNOWN_FILEPATH = path.join(process.cwd(), 'source/unknown.json');
1112
const BROWSERS_SOURCE_DIR = path.join(process.cwd(), 'source/browsers');
12-
const SORT_PATTERN = new RegExp('^-(webkit|moz|ms|o|apple|wap)-(.*)')
13+
const SORT_PATTERN = new RegExp('^-(khtml|konq|webkit|moz|ms|o|apple|wap)-(.*)')
1314
const OUTPUT = path.join(process.cwd(), 'data/all.json');
1415

1516
async function readJSON(filepath) {
@@ -23,7 +24,7 @@ async function saveJSON(properties) {
2324

2425
(async () => {
2526
const browserSourceFilepaths = await globby('*.json', { cwd: BROWSERS_SOURCE_DIR, absolute: true });
26-
const sourceFilepaths = [W3C_SOURCE_FILEPATH, ...browserSourceFilepaths];
27+
const sourceFilepaths = [W3C_SOURCE_FILEPATH, UNKNOWN_FILEPATH, ...browserSourceFilepaths];
2728

2829
const data = await Promise.all(sourceFilepaths.map(readJSON));
2930
const allProperties = data.map(({ properties }) => properties).flat();

source/browsers/safari-1.1.json

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"properties": [
3+
"-khtml-opacity",
4+
"-khtml-box-align",
5+
"-khtml-box-direction",
6+
"-khtml-box-flex",
7+
"-khtml-box-flex-group",
8+
"-khtml-box-lines",
9+
"-khtml-box-ordinal-group",
10+
"-khtml-box-orient",
11+
"-khtml-box-pack"
12+
]
13+
}

source/browsers/safari-2.0.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"properties": [
3+
"-khtml-border-horizontal-spacing",
4+
"-khtml-border-vertical-spacing",
5+
"-khtml-box-align",
6+
"-khtml-box-direction",
7+
"-khtml-box-flex",
8+
"-khtml-box-flex-group",
9+
"-khtml-box-lines",
10+
"-khtml-box-ordinal-group",
11+
"-khtml-box-orient",
12+
"-khtml-box-pack",
13+
"-khtml-line-break",
14+
"-khtml-margin-bottom-collapse",
15+
"-khtml-margin-start",
16+
"-khtml-marquee",
17+
"-khtml-marquee-direction",
18+
"-khtml-marquee-increment",
19+
"-khtml-marquee-repetition",
20+
"-khtml-marquee-speed",
21+
"-khtml-marquee-style",
22+
"-khtml-nbsp-mode",
23+
"-khtml-padding-start",
24+
"-khtml-user-drag",
25+
"-khtml-user-modify",
26+
"-khtml-user-select"
27+
]
28+
}

source/unknown.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"properties": [
3+
"-apple-line-clamp",
4+
"-apple-text-size-adjust",
5+
"-khtml-appearance",
6+
"-khtml-binding",
7+
"-khtml-box-flex-group-transition",
8+
"-khtml-dashboard-region",
9+
"-khtml-flow-mode",
10+
"-khtml-font-size-delta",
11+
"-khtml-horizontal-border-spacing",
12+
"-khtml-line-clamp",
13+
"-khtml-margin-collapse",
14+
"-khtml-margin-top-collapse",
15+
"-khtml-match-nearest-mail-blockquote-color",
16+
"-khtml-rtl-ordering",
17+
"-khtml-text-decorations-in-effect",
18+
"-khtml-text-size-adjust",
19+
"-khtml-vertical-border-spacing",
20+
"-konq-flow-mode",
21+
"-konq-js-clip"
22+
]
23+
}

0 commit comments

Comments
 (0)