-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
:-webkit-full-screen-document
an internal pseudo-class
https://bugs.webkit.org/show_bug.cgi?id=268234 rdar://121816310 Reviewed by Darin Adler. The main use of this is the UA stylesheet. Websites can use `:root:is(:fullscreen, :has(:fullscreen))` to achieve the same effect. Let's attempt to unexpose this pseudo-class. Also change 'full-screen' to 'fullscreen' for consistency with spec language. * LayoutTests/fullscreen/full-screen-css.html: * LayoutTests/imported/w3c/web-platform-tests/css/selectors/parsing/invalid-pseudos-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/selectors/parsing/invalid-pseudos.html: * ManualTests/fullscreen/full-screen-flash.html: * Source/WebCore/Modules/modern-media-controls/controls/media-controls.css: (:host(:-internal-animating-fullscreen-transition) .media-controls): (:host(:-internal-animating-full-screen-transition) .media-controls): Deleted. * Source/WebCore/css/CSSPseudoSelectors.json: * Source/WebCore/css/SelectorChecker.cpp: (WebCore::SelectorChecker::checkOne const): * Source/WebCore/css/SelectorCheckerTestFunctions.h: (WebCore::matchesAnimatingFullscreenTransitionPseudoClass): (WebCore::matchesFullscreenDocumentPseudoClass): (WebCore::matchesFullScreenAnimatingFullScreenTransitionPseudoClass): Deleted. (WebCore::matchesFullScreenDocumentPseudoClass): Deleted. * Source/WebCore/css/fullscreen.css: (*|*:root:-internal-fullscreen-document:not(:fullscreen)): (*|*:root:-webkit-full-screen-document:not(:fullscreen)): Deleted. * Source/WebCore/css/process-css-pseudo-selectors.py: * Source/WebCore/cssjit/SelectorCompiler.cpp: (WebCore::SelectorCompiler::JSC_DEFINE_JIT_OPERATION): (WebCore::SelectorCompiler::addPseudoClassType): * Source/WebCore/dom/FullscreenManager.cpp: (WebCore::FullscreenManager::setAnimatingFullscreen): * Source/WebCore/html/shadow/imageOverlay.css: (:host(:not(img)) div#image-overlay:-internal-fullscreen-document): (:host(:not(img)) div#image-overlay:-webkit-full-screen-document): Deleted. Canonical link: https://commits.webkit.org/273639@main
- Loading branch information
Showing
13 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...tTests/imported/w3c/web-platform-tests/css/selectors/parsing/invalid-pseudos-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
|
||
PASS ":-internal-animating-full-screen-transition" should be an invalid selector | ||
PASS ":-internal-fullscreen-document" should be an invalid selector | ||
PASS ":-internal-html-document" should be an invalid selector | ||
PASS ":-internal-media-document" should be an invalid selector | ||
PASS ":-khtml-drag" should be an invalid selector | ||
PASS ":-webkit-animating-full-screen-transition" should be an invalid selector | ||
PASS ":-webkit-full-page-media" should be an invalid selector | ||
PASS ":-webkit-full-screen-ancestor" should be an invalid selector | ||
PASS ":-webkit-full-screen-controls-hidden" should be an invalid selector | ||
PASS ":-webkit-full-screen-document" should be an invalid selector | ||
PASS "::-apple-attachment-controls-container" should be an invalid selector | ||
PASS "::-internal-loading-auto-fill-button" should be an invalid selector | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters