forked from AuroraMiddleware/gtk
3a373b9b33
Instead of encoding the raw data, encode the full image to a PNG. And instead of stuffing that encoding into a string, use a full data: url. And then remove the width and height properties, because they're now implicitly included in the data. And then change the parser to match. And because the parser now parses regular urls on top of data: urls, we can now load any random file.
12 lines
260 B
Plaintext
12 lines
260 B
Plaintext
/* Add a color node to blow up the bounds so that
|
|
we can test the texture bounds work. */
|
|
color {
|
|
bounds: 0 0 50 50;
|
|
color: white;
|
|
}
|
|
|
|
texture {
|
|
bounds: 10 10 30 30;
|
|
texture: url('data:,<svg><rect width="10" height="10" style="fill:red"/></svg>');
|
|
}
|