haikuwebkit/Source/WebCore/css/DOMCSSNamespace+CSSProperti...

33 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

Implement CSS Custom Properties and Values Skeleton https://bugs.webkit.org/show_bug.cgi?id=189694 Patch by Justin Michaud <justin_michaud@apple.com> on 2018-09-20 Reviewed by Simon Fraser. Source/WebCore: Add feature flag, CSS.registerProperty binding and registered property set in Document.h for the css custom properties and values api. Test: css-properties-values-api/registerProperty.html * CMakeLists.txt: * DerivedSources.make: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSRegisteredCustomProperty.h: Added. * css/DOMCSSCustomPropertyDescriptor.h: Added. * css/DOMCSSCustomPropertyDescriptor.idl: Added. * css/DOMCSSNamespace.h: * css/DOMCSSRegisterCustomProperty.cpp: Added. (WebCore::DOMCSSRegisterCustomProperty::registerProperty): (WebCore::DOMCSSRegisterCustomProperty::from): (WebCore::DOMCSSRegisterCustomProperty::supplementName): * css/DOMCSSRegisterCustomProperty.h: Added. * css/DOMCSSRegisterCustomProperty.idl: Added. * css/parser/CSSParserContext.cpp: * dom/Document.cpp: (WebCore::Document::registerCSSProperty): * dom/Document.h: * features.json: * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setCSSCustomPropertiesAndValuesEnabled): (WebCore::RuntimeEnabledFeatures::cssCustomPropertiesAndValuesEnabled const): Source/WebKit: Add feature flag for CSS custom properties and values api * Shared/WebPreferences.yaml: * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): LayoutTests: Add test to check that the CSS.registerProperty method exists. * css-custom-properties-api/registerProperty-expected.txt: Added. * css-custom-properties-api/registerProperty.html: Added. * platform/ios-wk1/TestExpectations: * platform/mac-wk1/TestExpectations: Canonical link: https://commits.webkit.org/204745@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-09-20 18:57:56 +00:00
/*
* Copyright (C) 2018 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
[WebIDL] Switch to new file name convention for partial interfaces https://bugs.webkit.org/show_bug.cgi?id=216843 Reviewed by Tim Horton. Updates all 'partial interface' IDLs to use the new naming convention adopted in https://webkit.org/b/216729, where they are name as the construction of the base interface '+' the supplementing spec. So, additions to Document from the Web Animations spec becomes Document+WebAnimations.idl. * accessibility/AccessibilityRenderObject.cpp: * bindings/js/JSDocumentCustom.cpp: * bindings/js/JSXMLDocumentCustom.cpp: * html/HTMLFrameOwnerElement.h: * loader/FrameLoader.cpp: * page/FrameView.cpp: * svg/DocumentSVG.cpp: Added. * svg/DocumentSVG.h: Added. * svg/SVGDocument.cpp: * svg/SVGDocument.h: * svg/SVGTRefElement.cpp: * svg/graphics/SVGImage.cpp: * style/StyleAdjuster.cpp: * svg/Document+SVG.idl: Added. * svg/SVGDocument.idl: Removed. Fix weirdness around SVGDocument. Previously, additions to the Document interface were in a class that was also a document subclass. Now the two are split, so the additions are in DocumentSVG.h/cpp, matching convention, and the subclass remains SVGDocument.h/cpp, also matching convention. * CMakeLists.txt: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: Update for renames. * Modules/async-clipboard/Navigator+Clipboard.idl: Added. * Modules/async-clipboard/NavigatorClipboard.idl: Removed. * Modules/beacon/Navigator+Beacon.idl: Added. * Modules/beacon/NavigatorBeacon.idl: Removed. * Modules/cache/DOMWindow+Caches.idl: Added. * Modules/cache/DOMWindowCaches.idl: Removed. * Modules/cache/WorkerGlobalScope+Caches.idl: Added. * Modules/cache/WorkerGlobalScopeCaches.idl: Removed. * Modules/credentialmanagement/Navigator+Credentials.idl: Added. * Modules/credentialmanagement/NavigatorCredentials.idl: Removed. * Modules/encryptedmedia/Navigator+EME.idl: Added. * Modules/encryptedmedia/NavigatorEME.idl: Removed. * Modules/entriesapi/HTMLInputElement+EntriesAPI.idl: Added. * Modules/entriesapi/HTMLInputElementEntriesAPI.idl: Removed. * Modules/fetch/WindowOrWorkerGlobalScope+Fetch.idl: Added. * Modules/fetch/WindowOrWorkerGlobalScopeFetch.idl: Removed. * Modules/gamepad/Navigator+Gamepad.idl: Added. * Modules/gamepad/NavigatorGamepad.idl: Removed. * Modules/geolocation/Navigator+Geolocation.idl: Added. * Modules/geolocation/NavigatorGeolocation.idl: Removed. * Modules/indexeddb/DOMWindow+IndexedDatabase.idl: Added. * Modules/indexeddb/DOMWindowIndexedDatabase.idl: Removed. * Modules/indexeddb/WorkerGlobalScope+IndexedDatabase.idl: Added. * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl: Removed. * Modules/mediacapabilities/Navigator+MediaCapabilities.idl: Added. * Modules/mediacapabilities/NavigatorMediaCapabilities.idl: Removed. * Modules/mediasession/HTMLMediaElement+MediaSession.idl: Added. * Modules/mediasession/HTMLMediaElementMediaSession.idl: Removed. * Modules/mediasource/AudioTrack+MediaSource.idl: Added. * Modules/mediasource/AudioTrackMediaSource.idl: Removed. * Modules/mediasource/DOMURL+MediaSource.idl: Added. * Modules/mediasource/DOMURLMediaSource.idl: Removed. * Modules/mediasource/TextTrack+MediaSource.idl: Added. * Modules/mediasource/TextTrackMediaSource.idl: Removed. * Modules/mediasource/VideoTrack+MediaSource.idl: Added. * Modules/mediasource/VideoTrackMediaSource.idl: Removed. * Modules/mediastream/Navigator+MediaDevices.idl: Added. * Modules/mediastream/NavigatorMediaDevices.idl: Removed. * Modules/pictureinpicture/Document+PictureInPicture.idl: Added. * Modules/pictureinpicture/DocumentOrShadowRoot+PictureInPicture.idl: Added. * Modules/pictureinpicture/DocumentOrShadowRootPictureInPicture.idl: Removed. * Modules/pictureinpicture/DocumentPictureInPicture.idl: Removed. * Modules/pictureinpicture/HTMLVideoElement+PictureInPicture.idl: Added. * Modules/pictureinpicture/HTMLVideoElementPictureInPicture.idl: Removed. * Modules/quota/DOMWindow+Quota.idl: Added. * Modules/quota/DOMWindowQuota.idl: Removed. * Modules/quota/Navigator+StorageQuota.idl: Added. * Modules/quota/NavigatorStorageQuota.idl: Removed. * Modules/quota/WorkerNavigator+StorageQuota.idl: Added. * Modules/quota/WorkerNavigatorStorageQuota.idl: Removed. * Modules/remoteplayback/HTMLMediaElement+RemotePlayback.idl: Added. * Modules/remoteplayback/HTMLMediaElementRemotePlayback.idl: Removed. * Modules/speech/DOMWindow+SpeechSynthesis.idl: Added. * Modules/speech/DOMWindowSpeechSynthesis.idl: Removed. * Modules/webdatabase/DOMWindow+WebDatabase.idl: Added. * Modules/webdatabase/DOMWindowWebDatabase.idl: Removed. * Modules/webdriver/Navigator+WebDriver.idl: Added. * Modules/webdriver/NavigatorWebDriver.idl: Removed. * Modules/webgpu/Navigator+GPU.idl: Added. * Modules/webgpu/NavigatorGPU.idl: Removed. * Modules/webgpu/WorkerNavigator+GPU.idl: Added. * Modules/webgpu/WorkerNavigatorGPU.idl: Removed. * Modules/webxr/Navigator+WebXR.idl: Added. * Modules/webxr/NavigatorWebXR.idl: Removed. * animation/Document+WebAnimations.idl: Added. * animation/DocumentAnimations.idl: Removed. * animation/DocumentOrShadowRoot+WebAnimations.idl: Added. * animation/DocumentOrShadowRootAnimations.idl: Removed. * animation/GlobalEventHandlers+CSSAnimations.idl: Added. * animation/GlobalEventHandlers+CSSTransitions.idl: Added. * animation/GlobalEventHandlersCSSAnimations.idl: Removed. * animation/GlobalEventHandlersCSSTransitions.idl: Removed. * css/DOMCSSNamespace+CSSPainting.idl: Added. * css/DOMCSSNamespace+CSSPropertiesandValues.idl: Added. * css/DOMCSSPaintWorklet.idl: Removed. * css/DOMCSSRegisterCustomProperty.idl: Removed. * css/DocumentOrShadowRoot+CSSOM.idl: Added. * css/DocumentOrShadowRootStyleSheets.idl: Removed. * dom/Document+CSSOMView.idl: Added. * dom/Document+Fullscreen.idl: Added. * dom/Document+HTML.idl: Added. * dom/Document+HTMLObsolete.idl: Added. * dom/Document+PageVisibility.idl: Added. * dom/Document+PointerLock.idl: Added. * dom/Document+Selection.idl: Added. * dom/Document+StorageAccess.idl: Added. * dom/Document+Touch.idl: Added. * dom/Document+UndoMananger.idl: Added. * dom/DocumentFullscreen.idl: Removed. * dom/DocumentHTML.idl: Removed. * dom/DocumentHTMLObsolete.idl: Removed. * dom/DocumentOrShadowRoot+PointerLock.idl: Added. * dom/DocumentOrShadowRootPointerLock.idl: Removed. * dom/DocumentPageVisibility.idl: Removed. * dom/DocumentPointerLock.idl: Removed. * dom/DocumentScrolling.idl: Removed. * dom/DocumentSelection.idl: Removed. * dom/DocumentStorageAccess.idl: Removed. * dom/DocumentTouch.idl: Removed. * dom/DocumentUndoMananger.idl: Removed. * dom/Element+DOMParsing.idl: Added. * dom/ElementDOMParsing.idl: Removed. * dom/GlobalEventHandlers+PointerEvents.idl: Added. * dom/GlobalEventHandlersPointerEvents.idl: Removed. * page/Navigator+IsLoggedIn.idl: Added. * page/NavigatorIsLoggedIn.idl: Removed. Rename IDLs. Canonical link: https://commits.webkit.org/229645@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-23 00:20:14 +00:00
// https://drafts.css-houdini.org/css-properties-values-api-1/#registering-custom-properties
Implement CSS Custom Properties and Values Skeleton https://bugs.webkit.org/show_bug.cgi?id=189694 Patch by Justin Michaud <justin_michaud@apple.com> on 2018-09-20 Reviewed by Simon Fraser. Source/WebCore: Add feature flag, CSS.registerProperty binding and registered property set in Document.h for the css custom properties and values api. Test: css-properties-values-api/registerProperty.html * CMakeLists.txt: * DerivedSources.make: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSRegisteredCustomProperty.h: Added. * css/DOMCSSCustomPropertyDescriptor.h: Added. * css/DOMCSSCustomPropertyDescriptor.idl: Added. * css/DOMCSSNamespace.h: * css/DOMCSSRegisterCustomProperty.cpp: Added. (WebCore::DOMCSSRegisterCustomProperty::registerProperty): (WebCore::DOMCSSRegisterCustomProperty::from): (WebCore::DOMCSSRegisterCustomProperty::supplementName): * css/DOMCSSRegisterCustomProperty.h: Added. * css/DOMCSSRegisterCustomProperty.idl: Added. * css/parser/CSSParserContext.cpp: * dom/Document.cpp: (WebCore::Document::registerCSSProperty): * dom/Document.h: * features.json: * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setCSSCustomPropertiesAndValuesEnabled): (WebCore::RuntimeEnabledFeatures::cssCustomPropertiesAndValuesEnabled const): Source/WebKit: Add feature flag for CSS custom properties and values api * Shared/WebPreferences.yaml: * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): LayoutTests: Add test to check that the CSS.registerProperty method exists. * css-custom-properties-api/registerProperty-expected.txt: Added. * css-custom-properties-api/registerProperty.html: Added. * platform/ios-wk1/TestExpectations: * platform/mac-wk1/TestExpectations: Canonical link: https://commits.webkit.org/204745@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-09-20 18:57:56 +00:00
[
[WebIDL] Stop automatically applying the ImplementedBy extended attribute to all partial interfaces/dictionaries https://bugs.webkit.org/show_bug.cgi?id=216322 Reviewed by Darin Adler. When partial interfaces were originally introduced, there were grand ambitions to modularize and isolate parts of interfaces completely, mostly using the Supplemental<> pattern. As time has passed, more and more specs have usedd partial just to group things together, and having it implicitly mean using a class named after the IDL file with some static functions is not always the right choice. With this change, partial interfaces that want the supplemental style behavior must opt in, using the extended attribute "ImplementedBy", which is what the code generators already called this concept internally. * bindings/scripts/CodeGenerator.pm: (ProcessInterfaceSupplementalDependencies): (ProcessDictionarySupplementalDependencies): * bindings/scripts/CodeGeneratorJS.pm: (GetFullyQualifiedImplementationCallName): (AddAdditionalArgumentsForImplementationCall): * bindings/scripts/IDLAttributes.json: Remove special casing of partial interfaces / dictionaries automatically getting "ImplementedBy" applied to all members. Maintain the behavior that "ImplementedBy" is silently ignored when an attribute has been marked as "Reflect". * Modules/async-clipboard/NavigatorClipboard.idl: * Modules/beacon/NavigatorBeacon.idl: * Modules/cache/DOMWindowCaches.idl: * Modules/cache/WorkerGlobalScopeCaches.idl: * Modules/credentialmanagement/NavigatorCredentials.idl: * Modules/encryptedmedia/NavigatorEME.idl: * Modules/entriesapi/HTMLInputElementEntriesAPI.idl: * Modules/fetch/DOMWindowFetch.idl: * Modules/fetch/WorkerGlobalScopeFetch.idl: * Modules/gamepad/NavigatorGamepad.idl: * Modules/geolocation/NavigatorGeolocation.idl: * Modules/indexeddb/DOMWindowIndexedDatabase.idl: * Modules/indexeddb/WorkerGlobalScopeIndexedDatabase.idl: * Modules/mediacapabilities/NavigatorMediaCapabilities.idl: * Modules/mediasession/HTMLMediaElementMediaSession.idl: * Modules/mediasource/AudioTrackMediaSource.idl: * Modules/mediasource/DOMURLMediaSource.idl: * Modules/mediasource/TextTrackMediaSource.idl: * Modules/mediasource/VideoTrackMediaSource.idl: * Modules/mediastream/NavigatorMediaDevices.idl: * Modules/pictureinpicture/DocumentPictureInPicture.idl: * Modules/pictureinpicture/HTMLVideoElementPictureInPicture.idl: * Modules/quota/DOMWindowQuota.idl: * Modules/quota/NavigatorStorageQuota.idl: * Modules/quota/WorkerNavigatorStorageQuota.idl: * Modules/remoteplayback/HTMLMediaElementRemotePlayback.idl: * Modules/speech/DOMWindowSpeechSynthesis.idl: * Modules/webdatabase/DOMWindowWebDatabase.idl: * Modules/webdriver/NavigatorWebDriver.idl: * Modules/webgpu/NavigatorGPU.idl: * Modules/webgpu/WebGPUDeviceErrorScopes.idl: * Modules/webgpu/WebGPUDeviceEventHandler.idl: * Modules/webgpu/WorkerNavigatorGPU.idl: * Modules/webxr/NavigatorWebXR.idl: * css/DOMCSSPaintWorklet.idl: * css/DOMCSSRegisterCustomProperty.idl: * dom/DocumentFullscreen.idl: * dom/DocumentStorageAccess.idl: * dom/DocumentTouch.idl: * page/NavigatorIsLoggedIn.idl: * svg/SVGDocument.idl: Update existing partials to opt into "ImplementedBy" bevahior. A future pass will go through these and see which ones can be simplified by removing the indirection without introducing unnecessary modularization changes. Canonical link: https://commits.webkit.org/229161@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-09 22:11:30 +00:00
EnabledBySetting=CSSCustomPropertiesAndValues,
ImplementedBy=DOMCSSRegisterCustomProperty
[WebIDL] `window.CSS` should be non-callable object with correct Symbol.toStringTag https://bugs.webkit.org/show_bug.cgi?id=220855 Reviewed by Sam Weinig. LayoutTests/imported/w3c: * web-platform-tests/console/idlharness.any-expected.txt: * web-platform-tests/console/idlharness.any.worker-expected.txt: * web-platform-tests/css/cssom/CSS-namespace-object-class-string-expected.txt: * web-platform-tests/css/cssom/idlharness-expected.txt: * web-platform-tests/resources/idlharness.js: Sync from upstream 15ecbfebd504. * web-platform-tests/wasm/jsapi/idlharness.any-expected.txt: * web-platform-tests/wasm/jsapi/idlharness.any.worker-expected.txt: Source/WebCore: Although `window.CSS` is the only namespace object currently handled by code generator, it's being extended by multiple Houdini specs [1], so keeping it generated is important. This patch brings spec compliance [2] and web interop while striking a balance between reducing generated code, avoiding indirection in the generator, and a small code diff. Feature-wise, a namespace object is a subset of an interface; so instead of creating a separate harness for it, like for callback interfaces, namespace objects are converted to interfaces before being handed over to code generator, with a flag on. While we can reduce the generated code even further, namely around subspaceForImpl(), this change rather aligns namespace objects with [JSBuiltin] interfaces to avoid making generator more complicated and introducing an interface with distinct set of methods. Web-facing changes for `window.CSS` are: 1. Removed [[Call]] and [[Construct]] methods, making `typeof CSS` return "object", which is used for feature detection (thus important for web interop). 2. Removed "length" / "name" / "prototype" properties. 3. Changed [[Prototype]] value to %Object.prototype%. 4. Added Symbol.toStringTag property with correct descriptor. All of the above were proven web-compatible by Blink and Gecko. Also, this patch limits the usage of NeedsConstructorProperty only to %Interface%.prototype.constructor, as its name suggests. [1] https://ishoudinireadyyet.com [2] https://heycam.github.io/webidl/#namespace-object Tests: imported/w3c/web-platform-tests/css/cssom/idlharness.html imported/w3c/web-platform-tests/css/cssom/CSS-namespace-object-class-string.html * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSDOMConstructorNotCallable.h: Added. (WebCore::JSDOMConstructorNotCallable::subspaceFor): (WebCore::JSDOMConstructorNotCallable::JSDOMConstructorNotCallable): (WebCore::JSDOMConstructorNotCallable::initializeProperties): (WebCore::JSDOMConstructorNotCallable<JSClass>::create): (WebCore::JSDOMConstructorNotCallable<JSClass>::createStructure): (WebCore::JSDOMConstructorNotCallable<JSClass>::finishCreation): * bindings/scripts/CodeGeneratorJS.pm: (NeedsImplementationClass): (GenerateHeader): (GenerateImplementation): (GeneratePrototypeDeclaration): (GetConstructorTemplateClassName): (GenerateConstructorHelperMethods): (NeedsConstructorProperty): * bindings/scripts/IDLAttributes.json: * bindings/scripts/IDLParser.pm: (convertNamespaceToInterface): (Parse): (parseNamespace): * bindings/scripts/preprocess-idls.pl: (containsInterfaceOrCallbackInterfaceFromIDL): (getInterfaceExtendedAttributesFromIDL): * bindings/scripts/test/JS/*: Updated. * css/DOMCSSNamespace+CSSPainting.idl: * css/DOMCSSNamespace+CSSPropertiesandValues.idl: * css/DOMCSSNamespace.idl: Canonical link: https://commits.webkit.org/237083@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-27 20:04:28 +00:00
] partial namespace DOMCSSNamespace {
[CallWith=Document] undefined registerProperty(DOMCSSCustomPropertyDescriptor descriptor);
Implement CSS Custom Properties and Values Skeleton https://bugs.webkit.org/show_bug.cgi?id=189694 Patch by Justin Michaud <justin_michaud@apple.com> on 2018-09-20 Reviewed by Simon Fraser. Source/WebCore: Add feature flag, CSS.registerProperty binding and registered property set in Document.h for the css custom properties and values api. Test: css-properties-values-api/registerProperty.html * CMakeLists.txt: * DerivedSources.make: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * css/CSSRegisteredCustomProperty.h: Added. * css/DOMCSSCustomPropertyDescriptor.h: Added. * css/DOMCSSCustomPropertyDescriptor.idl: Added. * css/DOMCSSNamespace.h: * css/DOMCSSRegisterCustomProperty.cpp: Added. (WebCore::DOMCSSRegisterCustomProperty::registerProperty): (WebCore::DOMCSSRegisterCustomProperty::from): (WebCore::DOMCSSRegisterCustomProperty::supplementName): * css/DOMCSSRegisterCustomProperty.h: Added. * css/DOMCSSRegisterCustomProperty.idl: Added. * css/parser/CSSParserContext.cpp: * dom/Document.cpp: (WebCore::Document::registerCSSProperty): * dom/Document.h: * features.json: * page/RuntimeEnabledFeatures.h: (WebCore::RuntimeEnabledFeatures::setCSSCustomPropertiesAndValuesEnabled): (WebCore::RuntimeEnabledFeatures::cssCustomPropertiesAndValuesEnabled const): Source/WebKit: Add feature flag for CSS custom properties and values api * Shared/WebPreferences.yaml: * WebProcess/InjectedBundle/InjectedBundle.cpp: (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner): LayoutTests: Add test to check that the CSS.registerProperty method exists. * css-custom-properties-api/registerProperty-expected.txt: Added. * css-custom-properties-api/registerProperty.html: Added. * platform/ios-wk1/TestExpectations: * platform/mac-wk1/TestExpectations: Canonical link: https://commits.webkit.org/204745@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@236273 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-09-20 18:57:56 +00:00
};