-
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.
[popover] @supports selector(:popover-open) does not reflect disabled…
… preference https://bugs.webkit.org/show_bug.cgi?id=263405 rdar://117226626 Reviewed by Simon Fraser. * LayoutTests/fast/selectors/popover-open-disabled-expected.html: Added. * LayoutTests/fast/selectors/popover-open-disabled.html: Added. * Source/WebCore/css/parser/CSSParserContext.cpp: (WebCore::CSSParserContext::CSSParserContext): (WebCore::add): * Source/WebCore/css/parser/CSSParserContext.h: * Source/WebCore/css/parser/CSSSelectorParser.cpp: (WebCore::CSSSelectorParserContext::CSSSelectorParserContext): (WebCore::CSSSelectorParser::consumePseudo): * Source/WebCore/css/parser/CSSSelectorParser.h: Canonical link: https://commits.webkit.org/269565@main
- Loading branch information
Showing
6 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
LayoutTests/fast/selectors/popover-open-disabled-expected.html
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
background-color: green; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Test passes if you see a green square</p> | ||
<div></div> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!-- webkit-test-runner [ PopoverAttributeEnabled=false ] --> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Test that :popover-open selector is not supported when popover attribute is disabled</title> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
background-color: red; | ||
@supports not selector(:popover-open) { | ||
background-color: green; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<p>Test passes if you see a green square</p> | ||
<div></div> | ||
</body> | ||
</html> |
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