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

Background color is lost if moved to a non-attributed line due to deletes. #12

Closed
byronm opened this issue Apr 12, 2013 · 7 comments
Closed
Assignees

Comments

@byronm
Copy link
Contributor

byronm commented Apr 12, 2013

Browser: Chrome 26

Steps to reproduce:

  1. Type the text "abc\ndef"
  2. Highlight "ef" and apply a background color.
  3. Highlight "abc\nd" and hit delete.

Expected Result
"ef" with the previously applied background color.

Actual Result
"ef" with no background color.

@ghost ghost assigned jhchen Apr 12, 2013
@jhchen jhchen closed this as completed in 332ecf0 Apr 12, 2013
@byronm
Copy link
Contributor Author

byronm commented Apr 12, 2013

I'm still seeing the issue after pulling this code. Are you sure 332ecf0 fixed it?

@jhchen
Copy link
Member

jhchen commented Apr 12, 2013

Think so... did you rebuild? This should have affected any span formatting so font family/size and it's working on beta.

@byronm
Copy link
Contributor Author

byronm commented Apr 12, 2013

I did rebuild...

Did you explicitly test background color? Experimenting a bit more I see that font family/size works in my dev environment, but background color does not. We don't have background color hooked up on beta but I'd guess it fails there too.

@jhchen
Copy link
Member

jhchen commented Apr 13, 2013

Interesting yeah it's actually only affecting background color now for some reason. Color, font family and font size should be fixed now though.

@jhchen jhchen reopened this Apr 13, 2013
@lpfister1 lpfister1 reopened this Apr 23, 2013
@byronm
Copy link
Contributor Author

byronm commented May 9, 2013

I've had a number of fuzzer runs where an attribute other than background color is lost. I've seen size and font-family get dropped, for example. I don't know how to reproduce making a specific attribute get lost, but I have observed that only one attribute from the collection is dropped.

@byronm
Copy link
Contributor Author

byronm commented May 16, 2013

To reproduce font-family being lost:

  1. Type "ab\nc"
  2. Apply the following formatting to "c", in the following order: background-color: blue, color: yellow, size: large, italic: true, family: serif
  3. Delete "\n"

Expected: "c" having the previously listed formatting.
Actual: "c" has the previously listed formatting, except the Serif font-family is dropped and it defaults to San Serif.

Note that both the order the attributes are applied in and the deletion of the \n before the formatted character are necessary to reproduce the bug.

@jhchen
Copy link
Member

jhchen commented Jul 12, 2013

No longer reproducible

@jhchen jhchen closed this as completed Jul 12, 2013
edave64 pushed a commit to edave64/quill that referenced this issue Jul 18, 2024
Fix two typos in README.md
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

3 participants