mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Minor fixes and update test expectations
This commit is contained in:
parent
91f3d4f474
commit
5287e70829
11 changed files with 12 additions and 50 deletions
|
@ -591,7 +591,7 @@ impl Document {
|
|||
// Step 6
|
||||
.or_else(|| self.get_anchor_by_name(fragid))
|
||||
// Step 7
|
||||
.or_else(|| if fragid.to_lowercase() == "top" {
|
||||
.or_else(|| if fragid.eq_ignore_ascii_case("top") {
|
||||
self.GetDocumentElement()
|
||||
} else {
|
||||
// Step 8
|
||||
|
@ -607,7 +607,7 @@ impl Document {
|
|||
// Step 1
|
||||
self.set_target_element(target.r());
|
||||
|
||||
let point = if fragment.is_empty() || fragment.to_lowercase() == "top" {
|
||||
let point = if fragment.is_empty() || fragment.eq_ignore_ascii_case("top") {
|
||||
// FIXME(stshine): this should be the origin of the stacking context space,
|
||||
// which may differ under the influence of writing mode.
|
||||
Some((0.0, 0.0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue