You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Details and summary styles don't match implementations. #8610
shows that the rules browsers actually use are different. The selectors are something like details > summary:first-of-type and details[open] > summary:first-of-type, with extra similar styles for the anonymous summary.
I think we could change browsers to follow the spec if needed, but it might be better to make the spec match reality?
nope, not missing anything. rather i was missing the fact that the styles i was seeing were due to revised default styling from normalize.css which i didn't realize was referenced form the file i was testing.
so... i'll just excuse myself from this and go file a bug over there. sorry about that.
On the triage call, everyone was leaning toward changing the spec to match browser behavior, but we took an action item to read up a bit more to confirm.
Activity
scottaohara commentedon Dec 12, 2022
emilio commentedon Dec 12, 2022
That's how browsers behave, and what I'm proposing, unless I'm missing something?
scottaohara commentedon Dec 12, 2022
nope, not missing anything. rather i was missing the fact that the styles i was seeing were due to revised default styling from normalize.css which i didn't realize was referenced form the file i was testing.
so... i'll just excuse myself from this and go file a bug over there. sorry about that.
Implement details and summary styling in a UA sheet.
Bug 1804925 - Implement details and summary styling in a UA sheet. r=…
Implement details and summary styling in a UA sheet.
Bug 1804925 - Implement details and summary styling in a UA sheet. r=…
domenic commentedon Jan 13, 2023
On the triage call, everyone was leaning toward changing the spec to match browser behavior, but we took an action item to read up a bit more to confirm.
Upon doing so, I think changing the spec to match browser behavior is indeed the best path here. That makes the styling consistent with the behavior. (Everything in https://html.spec.whatwg.org/#the-details-and-summary-elements except the stylesheet mentions "first summary element child", and https://html.spec.whatwg.org/#summary-for-its-parent-details also requires it to be the first element child.)
So, a PR and test updates would be lovely from my perspective.
jakearchibald commentedon Jan 23, 2023
Somewhat related, I think we should have a pseudo-element selector for the default
<summary>#8770Make details styles match implementation.
Make <details> UA styles match implementations
Bug 1804925 - Implement details and summary styling in a UA sheet. r=…