-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1804925 - Implement details and summary styling in a UA sheet. r=…
…TYLin This preserves the revert keyword behavior. This doesn't match the spec to the letter, see whatwg/html#8610, but I think it's probably ok to keep behavior for now. Changing to match the spec would avoid duplicating the details.css summary rule. Differential Revision: https://phabricator.services.mozilla.com/D164439
- Loading branch information
Showing
4 changed files
with
63 additions
and
9 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
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
19 changes: 19 additions & 0 deletions
19
testing/web-platform/tests/html/rendering/the-details-element/details-revert-ref.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,19 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<title>CSS Test Reference</title> | ||
<style> | ||
summary { | ||
display: list-item; | ||
counter-increment: list-item 0; | ||
list-style: disclosure-closed inside; | ||
} | ||
details[open] > summary { | ||
list-style-type: disclosure-open; | ||
} | ||
</style> | ||
<details> | ||
<summary>Example</summary> | ||
</details> | ||
<details open> | ||
<summary>Example</summary> | ||
</details> |
18 changes: 18 additions & 0 deletions
18
testing/web-platform/tests/html/rendering/the-details-element/details-revert.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,18 @@ | ||
<!doctype html> | ||
<meta charset="utf-8"> | ||
<link rel="help" href="https://html.spec.whatwg.org/#the-details-and-summary-elements"> | ||
<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1804925"> | ||
<link rel="match" href="details-revert-ref.html"> | ||
<style> | ||
summary { | ||
display: revert; | ||
counter-increment: revert; | ||
list-style: revert; | ||
} | ||
</style> | ||
<details> | ||
<summary>Example</summary> | ||
</details> | ||
<details open> | ||
<summary>Example</summary> | ||
</details> |