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

placeholder color, font-size in <input> on Firefox , line wrap in <textarea> #1894

Closed
Mapaler opened this issue Jun 18, 2019 · 5 comments
Closed

Comments

@Mapaler
Copy link

Mapaler commented Jun 18, 2019

Bug reports:

Full picture

Content Real - Firefox H2C - Firefox H2C - Chrome
Placeholder Real With placeholder H2C in Firefox H2C in Chrome
String Real With String H2C in Firefox H2C in Chrome

Decomposing pictures

Content Real - Firefox H2C - Firefox H2C - Chrome
border-style: dashed; 5 6 Same with Firefox
Placeholder <Input> 1 2 3
Placeholder <textarea> 4 Blank Blank
String <Input> 4 5 6
String <textarea> 1 2 3

Detailed explanation

  1. border-style: dashed; drawing error.

    Real - Firefox H2C - Firefox H2C - Chrome
    5 6 Same with Firefox
  2. font-size with <input> drawing error in Firefox.

    Real - Firefox H2C - Firefox
    1 2
    4 5
  3. color with <input>::placeholder drawing error.

    Real - Firefox H2C - Firefox H2C - Chrome
    1 2 3

    H2C uses string color, not placeholder color. If I modify the text color to red, the placeholder drawn by H2C is also red.
    2

    1

  4. Placeholder in <textarea> is not draw.

    Real - Firefox H2C - Firefox H2C - Chrome
    4 Blank Blank
  5. Line wrap in <textarea> is not drawn.

    Real - Firefox H2C - Firefox H2C - Chrome
    1 2 3

Related pages

https://mapaler.github.io/PADDashFormation/

Specifications:

  • html2canvas version tested with: v1.0.0-rc.3
  • Browser & version: Firefox Developer Edition 68.0b10 (64 bit) | Chrome 75.0.3770.90
  • Operating system: Microsoft Windows 10 1809 [Ver 10.0.17763.557]
@nidi3
Copy link

nidi3 commented Mar 19, 2020

Line wrap in textarea is a duplicate of #2008 ?

@Mapaler
Copy link
Author

Mapaler commented Mar 19, 2020

Yes.

In order to solve this problem, I have now converted <input> content into <div> in my program, so I can solve it.

Thank you for your work.

Only the dotted line border I don't know how to do yet.

@MacrazdHao
Copy link

MacrazdHao commented Aug 5, 2021

How can u solve the problem of dotted line border at last? If you solved it, please, tell me.

@niklasvh
Copy link
Owner

niklasvh commented Aug 5, 2021

@niklasvh niklasvh closed this as completed Aug 5, 2021
@MacrazdHao
Copy link

hello, I thought of a greate solution just now, you can use the div tag to draw a dashed or dotted line
.dashed {
width: 100%;
overflow: hidden;
margin-top: 10px;
white-space: nowrap;
line-height: 1px;
height: 1px;
font-size: 0;
letter-spacing: 4px;
.line {
display: inline-block;
width: 4px;
height: 1px;
background-color: #999999;
}
}

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

No branches or pull requests

4 participants