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

fix: highlight lines are cut when sliding #437

Merged
merged 4 commits into from
May 13, 2018
Merged

Conversation

ulivz
Copy link
Member

@ulivz ulivz commented May 13, 2018

Background

This issue was introduced by fixing #350 at d0ef06f, and due to <span> in <code> cannot expand to 100% width of <code>.

Since we have hoisted pre-wrapper as a standalone plugin at 45a3df5, we can also hoist the highlight lines element as an adjacent element to <pre> and create new stacking context to implement the same function.

BTW, the advantage of this PR is that we can avoid modifying the code in <pre><code> directly.

Before (Actual Behaviors)

highlight-issue

After (Expected Behaviors)

highlight-issue-after

@ulivz ulivz merged commit 66bd797 into master May 13, 2018
@ulivz ulivz mentioned this pull request May 13, 2018
@ulivz ulivz deleted the highlight-lines-scroll-issue branch May 14, 2018 01:34
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

Successfully merging this pull request may close these issues.

1 participant