• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    Do more on the web, with a fast and secure browser!

    Download Opera browser with:

    • built-in ad blocker
    • battery saver
    • free VPN
    Download Opera

    CSS selector fails

    Opera for Windows
    bug
    1
    1
    998
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Former User
      A Former User last edited by

      vsn 51.0.2830.40

      selector "div:first-child + p:first-letter" fails only in Opera and only if it is in an external style sheet.

      It works in Opera if it is in-line and works properly in Chrome, Firefox, Edge, IE (haven't checked Safari). The Stylesheet also "validates as CSS level 3 !" in W3 CSS test.

      Working properly, or course, means it selects the first letter of a <p> only if it immediately follows the first <div>

      more precisely the CSS is:

      .flowing div:first-child + p:first-letter {
      font-size: 3.2em;
      float: left;
      margin-top: .1em;
      margin-right: 0;
      line-height: .7;
      margin-bottom: 0; }

      Reply Quote 0
        1 Reply Last reply
      • First post
        Last post

      Computer browsers

      • Opera for Windows
      • Opera for Mac
      • Opera for Linux
      • Opera beta version
      • Opera USB

      Mobile browsers

      • Opera for Android
      • Opera Mini
      • Opera Touch
      • Opera for basic phones

      • Add-ons
      • Opera account
      • Wallpapers
      • Opera Ads

      • Help & support
      • Opera blogs
      • Opera forums
      • Dev.Opera

      • Security
      • Privacy
      • Cookies Policy
      • EULA
      • Terms of Service

      • About Opera
      • Press info
      • Jobs
      • Investors
      • Become a partner
      • Contact us

      Follow Opera

      • Opera - Facebook
      • Opera - Twitter
      • Opera - YouTube
      • Opera - LinkedIn
      • Opera - Instagram

      © Opera Software 1995-