Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

has_styling pseudo class bug #223

Open
2 tasks
BTWS2 opened this issue Jul 5, 2022 · 0 comments
Open
2 tasks

has_styling pseudo class bug #223

BTWS2 opened this issue Jul 5, 2022 · 0 comments
Labels
bug Something isn't working medium priority Things we want to see implemented relatively soon
Milestone

Comments

@BTWS2
Copy link
Collaborator

BTWS2 commented Jul 5, 2022

The check is marked as correct, but the selector is missing.

image

css = CssSuite(content)
a = css.element('a')
css.make_item("De bezochte link wordt in het groen weergegeven",
              a.has_styling("color", "green", pseudo="visited"))
<!DOCTYPE html>
<html lang="nl-BE">
<head>
    <title>Fruit</title>
    <meta charset="UTF-8">
    <style>
        li{
            margin-top: 10px;
        }
        #apple{
            font-style: italic;
        }
        :visited{
            color: green;
        }
    </style>
</head>
<body>
<img src="figuren/fruit_groenten.jpg" alt="De foto kan niet worden ingeladen.">
<ol>
    <li>
        Fruit
        <ul>
            <li id="apple">Appel</li>
            <li>Peer</li>
        </ul>
    </li>
    <li><a href="groenten.html">Groenten</a></li>
</ol>
</body>
</html>
@BTWS2 BTWS2 added bug Something isn't working medium priority Things we want to see implemented relatively soon labels Jul 5, 2022
@BTWS2 BTWS2 added this to the 1.0.1 milestone Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working medium priority Things we want to see implemented relatively soon
Projects
None yet
Development

No branches or pull requests

1 participant