mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 15:14:58 +00:00

Note that we don't load the local font as specified, but at least we no longer reject such src properties in the CSS parser. This makes the custom fonts used on http://apple.com/ actually load. :^)
10 lines
336 B
HTML
10 lines
336 B
HTML
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
let style = document.createElement("style");
|
|
style.innerText = "@font-face { font-family: 'a1'; src: local('xyz'); }";
|
|
document.head.appendChild(style);
|
|
let sheet = style.sheet;
|
|
println(sheet.cssRules[0].cssText);
|
|
});
|
|
</script>
|