mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
remove attributes in Style that were mapping directly to JS API
This commit is contained in:
@@ -215,8 +215,6 @@ class StyleProxy(dict):
|
|||||||
|
|
||||||
# CSS Properties
|
# CSS Properties
|
||||||
# Reference: https://github.com/microsoft/TypeScript/blob/main/src/lib/dom.generated.d.ts#L3799C1-L5005C2
|
# Reference: https://github.com/microsoft/TypeScript/blob/main/src/lib/dom.generated.d.ts#L3799C1-L5005C2
|
||||||
# Following prperties automatically generated from the above reference using
|
|
||||||
# tools/codegen_css_proxy.py
|
|
||||||
@property
|
@property
|
||||||
def visibility(self):
|
def visibility(self):
|
||||||
return self._element._element.style.visibility
|
return self._element._element.style.visibility
|
||||||
@@ -241,14 +239,6 @@ class StyleProxy(dict):
|
|||||||
def color(self, value):
|
def color(self, value):
|
||||||
self._element._element.style.color = value
|
self._element._element.style.color = value
|
||||||
|
|
||||||
@property
|
|
||||||
def backgroundColor(self):
|
|
||||||
return self._element._element.style.backgroundColor
|
|
||||||
|
|
||||||
@backgroundColor.setter
|
|
||||||
def backgroundColor(self, value):
|
|
||||||
self._element._element.style.backgroundColor = value
|
|
||||||
|
|
||||||
|
|
||||||
class StyleCollection:
|
class StyleCollection:
|
||||||
def __init__(self, collection: "ElementCollection") -> None:
|
def __init__(self, collection: "ElementCollection") -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user