Kotlin / kotlinx.html

Kotlin DSL for HTML
Apache License 2.0
1.6k stars 130 forks source link

Support SVG tag attributes #281

Open morki opened 3 months ago

morki commented 3 months ago

It would be useful to support SVG attributes like:

public var SVG.viewBox: String
    get() = stringAttribute[this, "viewBox"]
    set(viewBox) {
        stringAttribute[this, "viewBox"] = viewBox
    }

public var SVG.width: String
    get() = stringAttribute[this, "width"]
    set(width) {
        stringAttribute[this, "width"] = width
    }

public var SVG.height: String
    get() = stringAttribute[this, "height"]
    set(height) {
        stringAttribute[this, "height"] = height
    }