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

added support for :read-only and :read-write pseudo-classes #10834

Merged
merged 1 commit into from Apr 29, 2016

Conversation

@yoava333
Copy link
Contributor

yoava333 commented Apr 25, 2016

partial fix for #10732

It's not a full fix because:

  1. there's a bug in wpt-test web-platform-tests/wpt#2889 (comment)
  2. we don't fully support all input types (namely image, color, hidden and range), which are defaulted to input text. this means that :read-write which is applicable to input text is mis-handled in those cases.
  3. we don't support contenteditable, which is also possibly :read-write

This change is Reviewable

@highfive
Copy link

highfive commented Apr 25, 2016

Heads up! This PR modifies the following files:

  • @bholley: components/style/element_state.rs, components/style/selector_impl.rs
  • @KiChjang: components/script/dom/htmltextareaelement.rs, components/script/dom/element.rs, components/script/dom/htmlinputelement.rs
@SimonSapin
Copy link
Member

SimonSapin commented Apr 26, 2016

Looks good, thanks!

@bors-servo r+


Reviewed 8 of 8 files at r1.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

📌 Commit 84d7403 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Apr 26, 2016

Testing commit 84d7403 with merge 1d76044...

bors-servo added a commit that referenced this pull request Apr 26, 2016
added support for :read-only and :read-write pseudo-classes

partial fix for #10732

It's not a full fix because:
1. there's a bug in wpt-test web-platform-tests/wpt#2889 (comment)
2. we don't fully support all input types (namely image, color, hidden and range), which are defaulted to input text. this means that :read-write which is applicable to input text is mis-handled in those cases.
3. we don't support contenteditable, which is also possibly :read-write

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

bors-servo commented Apr 26, 2016

💔 Test failed - mac-dev-unit

@yoava333 yoava333 force-pushed the yoava333:master branch from 84d7403 to 9bf909a Apr 26, 2016
@yoava333
Copy link
Contributor Author

yoava333 commented Apr 26, 2016

fixed the failing ./mach build-geckolib test

@SimonSapin
Copy link
Member

SimonSapin commented Apr 29, 2016

@bors-servo r+


Reviewed 2 of 2 files at r2.
Review status: all files reviewed at latest revision, all discussions resolved.


Comments from Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2016

📌 Commit 9bf909a has been approved by SimonSapin

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2016

Testing commit 9bf909a with merge d8e07ad...

bors-servo added a commit that referenced this pull request Apr 29, 2016
added support for :read-only and :read-write pseudo-classes

partial fix for #10732

It's not a full fix because:
1. there's a bug in wpt-test web-platform-tests/wpt#2889 (comment)
2. we don't fully support all input types (namely image, color, hidden and range), which are defaulted to input text. this means that :read-write which is applicable to input text is mis-handled in those cases.
3. we don't support contenteditable, which is also possibly :read-write

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

bors-servo commented Apr 29, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Apr 29, 2016

  ▶ FAIL [expected PASS] /_mozilla/css/iframe/mozbrowser_navigation.html
  └   → /_mozilla/css/iframe/mozbrowser_navigation.html e60785ff75153e5d215bd0f65141fbb13cfbc61b
/_mozilla/css/iframe/mozbrowser_navigation_ref.html 8250706e506ad24231cc23be315b9b868387c598
Testing e60785ff75153e5d215bd0f65141fbb13cfbc61b == 8250706e506ad24231cc23be315b9b868387c598
@SimonSapin
Copy link
Member

SimonSapin commented Apr 29, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Apr 29, 2016

Testing commit 9bf909a with merge ac8406f...

bors-servo added a commit that referenced this pull request Apr 29, 2016
added support for :read-only and :read-write pseudo-classes

partial fix for #10732

It's not a full fix because:
1. there's a bug in wpt-test web-platform-tests/wpt#2889 (comment)
2. we don't fully support all input types (namely image, color, hidden and range), which are defaulted to input text. this means that :read-write which is applicable to input text is mis-handled in those cases.
3. we don't support contenteditable, which is also possibly :read-write

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

bors-servo commented Apr 29, 2016

@bors-servo bors-servo merged commit 9bf909a into servo:master Apr 29, 2016
3 checks passed
3 checks passed
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
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

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