Git Product home page Git Product logo

Comments (4)

carlosame avatar carlosame commented on July 20, 2024

Weird. What back-end are you using? I tested it with the native DOM and the DOM wrapper, cannot reproduce your issue.

Are you using css4j-dom4j ?

Could you post a reproducer ?

The document that I'm using:

<!DOCTYPE html>
<html>
<head>
<style>
table#corporate tr:first-child { background-color:#002a55; color:#faf; font-weight:bold }
table#corporate tr:nth-child(odd):not(:first-child) { background-color:#f5f5f5; color:#001; }
table#corporate tr:nth-child(even) { background-color:#fbf; color:#100 }
</style>
</head>
<body>
<table id="corporate">
<tbody>
<tr id="tr1"> <td>Test</td> <td>.</td> </tr>
<tr id="tr2"> <td>.</td> <td>.</td> </tr>
<tr id="tr3"> <td>.</td> <td>.</td> </tr>
<tr id="tr4"> <td>.</td> <td>.</td> </tr>
<tr id="tr5"> <td>.</td> <td>.</td> </tr>
</tbody>
</table>
</body>
</html>

For both tr3 and tr5 I get a (reduced) computed style of background-color:#f5f5f5;color:#001;. Isn't that what you are getting?

from css4j.

carlosame avatar carlosame commented on July 20, 2024

I managed to reproduce the problem with css4j-dom4j. Working on a patch.

from css4j.

carlosame avatar carlosame commented on July 20, 2024

The issue is fixed in master, fix will be released in css4j 3.7.2 and css4j-dom4j 3.7.1.

Unless you have more issues to report, I'll release the new versions soon.

from css4j.

carlosame avatar carlosame commented on July 20, 2024

Now both css4j 3.7.2 and css4j-dom4j 3.7.1 are released with the fix. Thank you @Truhera for reporting this bug.

from css4j.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.