mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:57:34 +00:00
LibWeb: Add SVGSVGElement.viewBox attribute
This attribute has some compatbility issues... - The spec says it should be an SVGAnimatedRect which contains a DOMRect and a DOMReadOnlyRect. - Blink gives you an SVGAnimatedRect with 2x SVGRect - Gecko gives you an SVGAnimatedRect with 2x SVGRect? (nullable) I ended up with something similar to Gecko, an SVGAnimatedRect with 2x DOMRect? (nullable) With this fixed, we can now load https://polar.sh/ :^)
This commit is contained in:
parent
2fd034d1df
commit
b12541b286
12 changed files with 228 additions and 2 deletions
7
Userland/Libraries/LibWeb/SVG/SVGFitToViewBox.idl
Normal file
7
Userland/Libraries/LibWeb/SVG/SVGFitToViewBox.idl
Normal file
|
@ -0,0 +1,7 @@
|
|||
#import <SVG/SVGAnimatedRect.idl>
|
||||
|
||||
// https://svgwg.org/svg2-draft/types.html#InterfaceSVGFitToViewBox
|
||||
interface mixin SVGFitToViewBox {
|
||||
[SameObject, ImplementedAs=view_box_for_bindings] readonly attribute SVGAnimatedRect viewBox;
|
||||
// FIXME: [SameObject] readonly attribute SVGAnimatedPreserveAspectRatio preserveAspectRatio;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue