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

[wip] layout: Use a magic pseudo-element for text styles. #12496

Closed
wants to merge 2 commits into from

Conversation

@emilio
Copy link
Member

emilio commented Jul 18, 2016


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • There are tests for these changes

This is an example that partially addresses
#8570, hoping that other people will
complete it based on an example like this.

Actually, we do approximately the same amount of work now, but we could mark
this pseudos as "eagerly" cascaded, and do less work in layout, at the expense
of (possibly) wasted work in style.


This change is Reviewable

This is an example that partially addresses
#8570, hoping that other people will
complete it based on an example like this.

Actually, we do approximately the same amount of work now, but we could mark
this pseudos as "eagerly" cascaded, and do less work in layout, at the expense
of (possibly) wasted work.
@highfive
Copy link

highfive commented Jul 18, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/selector_impl.rs, components/style/properties/properties.mako.rs
  • @KiChjang: components/script_layout_interface/wrapper_traits.rs
@highfive
Copy link

highfive commented Jul 18, 2016

warning Warning warning

  • These commits modify style and layout code, but no tests are modified. Please consider adding a test!
@emilio
Copy link
Member Author

emilio commented Jul 18, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 18, 2016

Trying commit 2632e39 with merge 32874da...

bors-servo added a commit that referenced this pull request Jul 18, 2016
[wip] layout: Use a magic pseudo-element for text styles.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

This is an example that partially addresses
#8570, hoping that other people will
complete it based on an example like this.

Actually, we do approximately the same amount of work now, but we could mark
this pseudos as "eagerly" cascaded, and do less work in layout, at the expense
of (possibly) wasted work in style.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12496)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 18, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Jul 18, 2016

  ▶ FAIL [expected PASS] /html/semantics/grouping-content/the-li-element/grouping-li-reftest-002.html
  └   → /html/semantics/grouping-content/the-li-element/grouping-li-reftest-002.html 5d5412f492db117be2ea8723cb445451dc47d557
/html/semantics/grouping-content/the-li-element/grouping-li-reftest-002-ref.html ef51006fdbf0c5fd25d99e3a8a6b04c11ef2b693
Testing 5d5412f492db117be2ea8723cb445451dc47d557 == ef51006fdbf0c5fd25d99e3a8a6b04c11ef2b693

  ▶ FAIL [expected PASS] /html/semantics/grouping-content/the-ol-element/grouping-ol-type-reftest-001.html
  └   → /html/semantics/grouping-content/the-ol-element/grouping-ol-type-reftest-001.html b596885d20b4422da5866f62e88471ccc8343bfc
/html/semantics/grouping-content/the-ol-element/grouping-ol-type-reftest-001-ref.html fa15780cf0c5e9d24b76b7bee7335f1d77c9ed9e
Testing b596885d20b4422da5866f62e88471ccc8343bfc == fa15780cf0c5e9d24b76b7bee7335f1d77c9ed9e

  ▶ FAIL [expected PASS] /_mozilla/css/absolute_inline_containing_block_a.html
  └   → /_mozilla/css/absolute_inline_containing_block_a.html 96868fd517f6e756e1772b8f52f274d3b0c2bb3d
/_mozilla/css/absolute_inline_containing_block_ref.html 27c6154b79a343e1cdb4e03ce1729b655b1814e1
Testing 96868fd517f6e756e1772b8f52f274d3b0c2bb3d == 27c6154b79a343e1cdb4e03ce1729b655b1814e1

  ▶ FAIL [expected PASS] /_mozilla/css/acid2_noscroll.html
  └   → /_mozilla/css/acid2_noscroll.html 1a7247e3a0c48d86681281e7a10db19b1cc2ee35
/_mozilla/css/acid2_ref_broken.html 3e1378a97c535c8baf2aef157b570e2fcbb799a5
Testing 1a7247e3a0c48d86681281e7a10db19b1cc2ee35 == 3e1378a97c535c8baf2aef157b570e2fcbb799a5

  ▶ FAIL [expected PASS] /_mozilla/css/inline_block_block_direction_margins_a.html
  └   → /_mozilla/css/inline_block_block_direction_margins_a.html 6b6b51eb7051b9ffab052681c564aedacf4442f2
/_mozilla/css/inline_block_block_direction_margins_ref.html ad740be086fcdc7e56160f109c4a8ef670947ec7
Testing 6b6b51eb7051b9ffab052681c564aedacf4442f2 == ad740be086fcdc7e56160f109c4a8ef670947ec7

  ▶ FAIL [expected PASS] /_mozilla/css/inline_block_parent_padding_a.html
  └   → /_mozilla/css/inline_block_parent_padding_a.html 965bb32c87cfd70f0b35b93b4fbe2eadc86c0ee3
/_mozilla/css/inline_block_parent_padding_ref.html aac3e15f1aa4f031fcdb1db480d43561f2437098
Testing 965bb32c87cfd70f0b35b93b4fbe2eadc86c0ee3 == aac3e15f1aa4f031fcdb1db480d43561f2437098

  ▶ FAIL [expected PASS] /_mozilla/css/inline_margins_intrinsic_size_a.html
  └   → /_mozilla/css/inline_margins_intrinsic_size_a.html fe2699b13984bb7d2dbc977af4035eb9cd14cd46
/_mozilla/css/inline_margins_intrinsic_size_ref.html 53860360ee64156b8099ca92e9dac05eab084bcf
Testing fe2699b13984bb7d2dbc977af4035eb9cd14cd46 == 53860360ee64156b8099ca92e9dac05eab084bcf

  ▶ FAIL [expected PASS] /_mozilla/css/margin_padding_inline_block_a.html
  └   → /_mozilla/css/margin_padding_inline_block_a.html d7ac43659e13930b92df0195e1a4756abf920fb6
/_mozilla/css/margin_padding_inline_block_ref.html 7b75f1b7230adba06035bb3bae80bbcd204daa14
Testing d7ac43659e13930b92df0195e1a4756abf920fb6 == 7b75f1b7230adba06035bb3bae80bbcd204daa14

  ▶ FAIL [expected PASS] /_mozilla/css/pixel_snapping_glyphs.html
  └   → /_mozilla/css/pixel_snapping_glyphs.html 820d10073f330d7cd264299568dfe64ba7724859
/_mozilla/css/pixel_snapping_glyphs_ref.html 116bed8487919a854cf178088f38a3c35b23afd9
Testing 820d10073f330d7cd264299568dfe64ba7724859 == 116bed8487919a854cf178088f38a3c35b23afd9

  ▶ FAIL [expected PASS] /_mozilla/css/table_margin_auto_a.html
  └   → /_mozilla/css/table_margin_auto_a.html 2145572b443f120a4c2798143e06d6e203f2e4fd
/_mozilla/css/table_margin_auto_ref.html 735f0f1eca6016c833f62b1bef1ac76887f3b65a
Testing 2145572b443f120a4c2798143e06d6e203f2e4fd == 735f0f1eca6016c833f62b1bef1ac76887f3b65a

  ▶ FAIL [expected PASS] /_mozilla/mozilla/table_valign_middle.html
  └   → /_mozilla/mozilla/table_valign_middle.html 4a46bfbc0efdb50f8d8e722e4d6124c5a2430005
/_mozilla/mozilla/table_valign_middle_ref.html 225f0a6629627810319b41edf6460e4eaea546d1
Testing 4a46bfbc0efdb50f8d8e722e4d6124c5a2430005 == 225f0a6629627810319b41edf6460e4eaea546d1

  ▶ FAIL [expected PASS] /_mozilla/mozilla/table_valign_bottom.html
  └   → /_mozilla/mozilla/table_valign_bottom.html a6994fdd68deddef1de7e666ba05a35ee2a77720
/_mozilla/mozilla/table_valign_bottom_ref.html e9aca3093112fecffbea5f1a95e834f7a19880f3
Testing a6994fdd68deddef1de7e666ba05a35ee2a77720 == e9aca3093112fecffbea5f1a95e834f7a19880f3
@emilio
Copy link
Member Author

emilio commented Jul 19, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 19, 2016

Trying commit d343e09 with merge b1b7afe...

bors-servo added a commit that referenced this pull request Jul 19, 2016
[wip] layout: Use a magic pseudo-element for text styles.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

This is an example that partially addresses
#8570, hoping that other people will
complete it based on an example like this.

Actually, we do approximately the same amount of work now, but we could mark
this pseudos as "eagerly" cascaded, and do less work in layout, at the expense
of (possibly) wasted work in style.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12496)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 19, 2016

💔 Test failed - linux-rel

@emilio emilio force-pushed the emilio:text-pseudo branch from d343e09 to 7aca186 Jul 19, 2016
@emilio
Copy link
Member Author

emilio commented Jul 19, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Jul 19, 2016

Trying commit 7aca186 with merge ba26eec...

bors-servo added a commit that referenced this pull request Jul 19, 2016
[wip] layout: Use a magic pseudo-element for text styles.

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors

<!-- Either: -->
- [x] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

This is an example that partially addresses
#8570, hoping that other people will
complete it based on an example like this.

Actually, we do approximately the same amount of work now, but we could mark
this pseudos as "eagerly" cascaded, and do less work in layout, at the expense
of (possibly) wasted work in style.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12496)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jul 19, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Jul 19, 2016

  ▶ FAIL [expected PASS] /_mozilla/css/submit_focus_a.html
  └   → /_mozilla/css/submit_focus_a.html 32dc2833c6e68c1a6ef1508f26633a31487aecc5
/_mozilla/css/submit_focus_b.html 697e30bdbf6a12849efbf8c40bb1e886e1a8748f
Testing 32dc2833c6e68c1a6ef1508f26633a31487aecc5 == 697e30bdbf6a12849efbf8c40bb1e886e1a8748f
@stshine
Copy link
Contributor

stshine commented Jul 19, 2016

Good, I was about to ask for this 😆

@jdm
Copy link
Member

jdm commented Jul 19, 2016

@highfive highfive assigned pcwalton and unassigned jdm Jul 19, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Jul 20, 2016

The latest upstream changes (presumably #12515) made this pull request unmergeable. Please resolve the merge conflicts.

@pcwalton
Copy link
Contributor

pcwalton commented Jul 25, 2016

This looks good when rebased and when tests are updated. Thanks!

@jdm
Copy link
Member

jdm commented Jan 27, 2017

Closing due to lack of activity.

@jdm jdm closed this Jan 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

6 participants
You can’t perform that action at this time.