Bug 194011 - REGRESSION (Safari 12): Sibling selector on :checked is broken
Summary: REGRESSION (Safari 12): Sibling selector on :checked is broken
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 12
Hardware: Mac macOS 10.14
: P2 Normal
Assignee: Antti Koivisto
URL: https://codepen.io/Che7ovek/pen/zeoovr
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2019-01-30 01:16 PST by Leonid Tropin
Modified: 2022-08-20 13:17 PDT (History)
9 users (show)

See Also:


Attachments
Visual representation (42.68 KB, image/png)
2019-01-30 01:16 PST, Leonid Tropin
no flags Details
Safari 15.6.1 and STP 151 match with all other browsers (1.90 MB, image/png)
2022-08-20 13:16 PDT, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Tropin 2019-01-30 01:16:43 PST
Created attachment 360563 [details]
Visual representation

See bug on https://codepen.io/Che7ovek/pen/zeoovr

If use "input:checked + label span" selector, then that styles confirmed to all spans in label tag after checked input, not only sibling's of that input.
But specified input type in selector can fix it.

//This generate bug
input:checked + label span{
	font-size: 2em;
}

//This don't
input[type=checkbox]:checked + label span{
	font-size: 2em;
}
Comment 1 Leonid Tropin 2019-01-30 01:19:52 PST
This bug works only in Safary 12.
Comment 2 Radar WebKit Bug Importer 2019-01-30 10:23:27 PST
<rdar://problem/47671532>
Comment 3 Ahmad Saleem 2022-08-20 13:16:59 PDT
Created attachment 461771 [details]
Safari 15.6.1 and STP 151 match with all other browsers

I am unable to reproduce this bug in Safari 15.6.1 and Safari Technology Preview 151 using attached test case (CodePen) and as can be seen from attached screenshot and it matches with other browsers. Thanks!

I am going to mark this "RESOLVED CONFIGURATION CHANGED", please reopen if you think I am wrong. Thanks!