summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS
diff options
context:
space:
mode:
authordavidot <david.tuin@gmail.com>2021-07-24 01:10:21 +0200
committerLinus Groh <mail@linusgroh.de>2021-07-26 15:56:15 +0100
commite42eaa5d956fb27df131202f9684cfb3fdf7a055 (patch)
treeb58567e092d457ef363741869175d460a6db0ad8 /Userland/Libraries/LibWeb/CSS
parent0b74cc4712b4ab41b8aac9b0008f8a315cc7e432 (diff)
downloadserenity-e42eaa5d956fb27df131202f9684cfb3fdf7a055.zip
LibWeb: Add a CustomHasProperty trait to WrapperGenerator
We immediately use this in CSSStyleDeclaration to fix that "background" in element.style did not return true. This is the mechanism used in css3test.com for detecting support of features.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS')
-rw-r--r--Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
index d4f425e9b4..987ae17337 100644
--- a/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
+++ b/Userland/Libraries/LibWeb/CSS/CSSStyleDeclaration.idl
@@ -1,4 +1,4 @@
-[CustomGet,CustomSet]
+[CustomGet,CustomSet,CustomHasProperty]
interface CSSStyleDeclaration {
readonly attribute unsigned long length;