WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
76743
:only-child not showing in Webkit/Safari
https://bugs.webkit.org/show_bug.cgi?id=76743
Summary
:only-child not showing in Webkit/Safari
Jeroen Schmit
Reported
2012-01-20 14:58:26 PST
I'm trying to get this to work: <!doctype html> <html> <style> section{ display: none; } section:only-child { display: block; } </style> <body> <section>This should be visible</section> </body> </html> I believe that the text 'This should be visible' should be visible. This is also the case in Firefox. Firebug, as well as Safari's Web Inspector think so as well. However, if you open the page in Safari (OSX and iPhone), the text is not showing. See also:
http://stackoverflow.com/questions/8893673/only-child-not-showing-in-webkit-safari
Attachments
Test Case
(211 bytes, text/html)
2022-07-12 16:29 PDT
,
Brent Fulgham
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Brent Fulgham
Comment 1
2022-07-12 16:29:28 PDT
Created
attachment 460834
[details]
Test Case
Brent Fulgham
Comment 2
2022-07-12 16:29:40 PDT
Safari, Chrome, and Firefox all agree on rendering for this test case. I don't believe there is any remaining compatibility issue.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug