Commit 034a433
authored
[css-values-4] [css-cascade-4] [css-color-5] [css-fonts-4] [css-images-4] [css-shapes-2] Clean up fetching (w3c#12261)
* [css-vlaues-4] [css-cascade-4] [css-color-5] [css-fonts-4] [css-images-4] [css-shapes-2] Clean up fetching
This fixes a few cases around fetching external URLs for style resources:
- The base URL is the sheet's base URL if exists, otherwise the sheet's location, otherwise the document
base URL.
- The algorithm can take either a rule or declaration block, and derive the correct stylesheet and base
URL from that.
Updated the calling sites to take that onto account.
- Removed redundant URL parsing in "@import".
Closes w3c#12065
Closes w3c#12068
Closes w3c#12086
Closes w3c#12147
* Extract the computed absolute URL to a separate algo
* A few fixes
* nit1 parent d4a6d5f commit 034a433
File tree
6 files changed
+46
-31
lines changed- css-cascade-4
- css-color-5
- css-fonts-4
- css-images-4
- css-shapes-2
- css-values-4
6 files changed
+46
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
| 282 | + | |
| 283 | + | |
289 | 284 | | |
290 | 285 | | |
291 | 286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1994 | 1994 | | |
1995 | 1995 | | |
1996 | 1996 | | |
1997 | | - | |
| 1997 | + | |
1998 | 1998 | | |
1999 | 1999 | | |
2000 | 2000 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3698 | 3698 | | |
3699 | 3699 | | |
3700 | 3700 | | |
3701 | | - | |
| 3701 | + | |
3702 | 3702 | | |
3703 | 3703 | | |
3704 | 3704 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
614 | | - | |
615 | | - | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | | - | |
1025 | | - | |
| 1024 | + | |
1026 | 1025 | | |
1027 | 1026 | | |
1028 | 1027 | | |
| |||
1147 | 1146 | | |
1148 | 1147 | | |
1149 | 1148 | | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
1150 | 1175 | | |
1151 | 1176 | | |
1152 | | - | |
| 1177 | + | |
1153 | 1178 | | |
1154 | 1179 | | |
1155 | 1180 | | |
1156 | 1181 | | |
1157 | 1182 | | |
1158 | | - | |
1159 | | - | |
1160 | | - | |
1161 | | - | |
1162 | | - | |
| 1183 | + | |
| 1184 | + | |
1163 | 1185 | | |
1164 | | - | |
1165 | | - | |
1166 | | - | |
| 1186 | + | |
1167 | 1187 | | |
1168 | 1188 | | |
1169 | 1189 | | |
1170 | 1190 | | |
1171 | | - | |
| 1191 | + | |
1172 | 1192 | | |
1173 | 1193 | | |
1174 | | - | |
1175 | | - | |
| 1194 | + | |
| 1195 | + | |
1176 | 1196 | | |
1177 | 1197 | | |
1178 | 1198 | | |
| |||
1181 | 1201 | | |
1182 | 1202 | | |
1183 | 1203 | | |
1184 | | - | |
1185 | | - | |
| 1204 | + | |
| 1205 | + | |
1186 | 1206 | | |
1187 | 1207 | | |
1188 | 1208 | | |
1189 | 1209 | | |
1190 | 1210 | | |
1191 | | - | |
| 1211 | + | |
1192 | 1212 | | |
1193 | 1213 | | |
1194 | 1214 | | |
| |||
0 commit comments