Skip to content

CSS **boder-style** not properly expanded when 3 values are given. #34

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

Closed
atlastodor opened this issue May 28, 2019 · 1 comment
Closed

Comments

@atlastodor
Copy link

Bug Report

Prerequisites

  • [ Yes ] Can you reproduce the problem in a [MWE]
  • [ Yes 0.12.1 ] Are you running the latest version of AngleSharp?
  • [ Yes ] Did you check the FAQs to see if that helps you?
  • [ Yes ] Are you reporting to the correct repository? (if its an issue with the core library, please report to AngleSharp directly)
  • [ Yes ] Did you perform a search in the issues?

For more information, see the CONTRIBUTING guide.

Description

CSS boder-style not properly expanded when 3 values are given.

Steps to Reproduce

  1. Configure AngleSharp WithCss.
  2. Using a new BrowsingContext, parse this HTML:
<!DOCTYPE html>
<html>
<head><title></title></head>
<body style="border-style: hidden double dashed;"></body>
</html>
  1. Get the style for the Body element.
    var styleDeclaration = document.Body.ComputeCurrentStyle();

Expected behavior:
As per CSS border-style

When three values are specified, the first style applies to the top, the second to the left and right, the third to the bottom.

"border-top-style: hidden"
"border-left-style: double"
"border-right-style: double"
"border-bottom-style: dashed"

Actual behavior:

"border-top-style: double"
"border-left-style: double"
"border-right-style: hidden"
"border-bottom-style: dashed"

Environment details:
Windows 10, .Net 4.7

Possible Solution

Fix the order into which the property is expanded.

@FlorianRappl FlorianRappl added this to the v0.13 milestone May 28, 2019
FlorianRappl added a commit that referenced this issue May 28, 2019
@FlorianRappl
Copy link
Contributor

Landed in devel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants