We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
AngleSharp.Xml
Overriding inheritance does not seem to work as expected. Same behaviour regardless of using the shorthand property or the individual properties.
Using Anglesharp.CSS 1.0.0-beta.151.
var text = """ <html lang="en"> <head> <style> table { border: medium solid; } table * { border: inherit; } </style> <title></title> </head> <body> <table> <tbody> <tr><td>hello1</td></tr> <tr><td>hello2</td></tr> <tr><td>hello3</td></tr> </tbody> </table> </body> </html> """; var ctx = BrowsingContext.New(Configuration.Default.WithDefaultLoader().WithCss()); var p = new HtmlParser(new HtmlParserOptions(), ctx); var doc = await p.ParseDocumentAsync(text); var td = doc.QuerySelector("body>table>tbody>tr:nth-child(1)>td"); var style = td.ComputeCurrentStyle();
The td style should contain the same border attribute values as the parent table.
td
The td style border attribute values are all initial.
initial
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prerequisites
AngleSharp.Xml
for Xml support)Description
Overriding inheritance does not seem to work as expected. Same behaviour regardless of using the shorthand property or the individual properties.
Using Anglesharp.CSS 1.0.0-beta.151.
Steps to Reproduce
Expected Behavior
The
td
style should contain the same border attribute values as the parent table.Actual Behavior
The
td
style border attribute values are allinitial
.Possible Solution / Known Workarounds
No response
The text was updated successfully, but these errors were encountered: